From 71293e94a6e1eb8263e3a01a7b309b11cf7526d7 Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Tue, 2 Jul 2019 15:07:57 +0200 Subject: [PATCH] [MNG-6697] Remove the unused FIELDS_CACHE and make the InnerInterpolator private --- .../model/interpolation/StringSearchModelInterpolator.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/StringSearchModelInterpolator.java b/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/StringSearchModelInterpolator.java index 5e6ad0c70acd..3c2ea1377bdd 100644 --- a/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/StringSearchModelInterpolator.java +++ b/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/StringSearchModelInterpolator.java @@ -62,9 +62,7 @@ public class StringSearchModelInterpolator new ConcurrentHashMap<>( 80, 0.75f, 2 ); // Empirical data from 3.x, actual =40 - private static final Map, Map> FIELDS_CACHE = new HashMap<>(); - - interface InnerInterpolator + private interface InnerInterpolator { String interpolate( String value ); }