Skip to content

Commit

Permalink
[MNG-6697] Clean up the code to remove a few warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Jul 3, 2019
1 parent 71293e9 commit c89c910
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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 )
{
Expand Down

0 comments on commit c89c910

Please sign in to comment.