o Fixed regression introduced by r900021

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@900965 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2010-01-19 21:25:08 +00:00
parent 2c107b31c7
commit 9168e66222
1 changed files with 1 additions and 6 deletions

View File

@ -156,7 +156,7 @@ public class StringSearchModelInterpolator
if ( String.class == type )
{
String value = (String) fields[i].get( target );
if ( value != null )
if ( value != null && !Modifier.isFinal( fields[i].getModifiers() ) )
{
String interpolated =
modelInterpolator.interpolateInternal( value, valueSources, postProcessors,
@ -330,11 +330,6 @@ public class StringSearchModelInterpolator
return false;
}
if ( Modifier.isFinal( field.getModifiers() ) )
{
return false;
}
return true;
}