mirror of https://github.com/apache/maven.git
o Optimized code
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@900019 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fa2b09bc0a
commit
5a51823501
|
@ -308,26 +308,22 @@ public class StringSearchModelInterpolator
|
||||||
|
|
||||||
private boolean isQualifiedForInterpolation( Class<?> cls )
|
private boolean isQualifiedForInterpolation( Class<?> cls )
|
||||||
{
|
{
|
||||||
return !cls.getPackage().getName().startsWith( "java" );
|
return !cls.getName().startsWith( "java" );
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isQualifiedForInterpolation( Field field, Class<?> fieldType )
|
private boolean isQualifiedForInterpolation( Field field, Class<?> fieldType )
|
||||||
{
|
{
|
||||||
if ( !fieldIsPrimitiveByClass.containsKey( fieldType ) )
|
Boolean primitive = fieldIsPrimitiveByClass.get( fieldType );
|
||||||
|
if ( primitive == null )
|
||||||
{
|
{
|
||||||
fieldIsPrimitiveByClass.put( fieldType, Boolean.valueOf( fieldType.isPrimitive() ) );
|
primitive = Boolean.valueOf( fieldType.isPrimitive() );
|
||||||
|
fieldIsPrimitiveByClass.put( fieldType, primitive );
|
||||||
}
|
}
|
||||||
|
if ( primitive.booleanValue() )
|
||||||
if ( fieldIsPrimitiveByClass.get( fieldType ).booleanValue() )
|
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if ( fieldType.isPrimitive() )
|
|
||||||
// {
|
|
||||||
// return false;
|
|
||||||
// }
|
|
||||||
|
|
||||||
if ( "parent".equals( field.getName() ) )
|
if ( "parent".equals( field.getName() ) )
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue