diff --git a/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/StringVisitorModelInterpolator.java b/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/StringVisitorModelInterpolator.java index 09e83c31ac02..fc414c53ab2f 100644 --- a/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/StringVisitorModelInterpolator.java +++ b/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/StringVisitorModelInterpolator.java @@ -102,7 +102,7 @@ public Model interpolateModel( Model model, File projectDir, ModelBuildingReques InnerInterpolator innerInterpolator = createInterpolator( valueSources, postProcessors, problems ); - new ModelVisitor( innerInterpolator, problems ).visit( model ); + new ModelVisitor( innerInterpolator ).visit( model ); return model; } @@ -151,20 +151,17 @@ public String interpolate( String value ) }; } + @SuppressWarnings( "StringEquality" ) private static final class ModelVisitor { private final InnerInterpolator interpolator; - private final ModelProblemCollector problems; - - ModelVisitor( InnerInterpolator interpolator, ModelProblemCollector problems ) + ModelVisitor(InnerInterpolator interpolator) { this.interpolator = interpolator; - - this.problems = problems; } - public void visit( Model model ) + void visit( Model model ) { if ( model != null ) {