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 )
|
||||
{
|
||||
return !cls.getPackage().getName().startsWith( "java" );
|
||||
return !cls.getName().startsWith( "java" );
|
||||
}
|
||||
|
||||
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 ( fieldIsPrimitiveByClass.get( fieldType ).booleanValue() )
|
||||
if ( primitive.booleanValue() )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// if ( fieldType.isPrimitive() )
|
||||
// {
|
||||
// return false;
|
||||
// }
|
||||
|
||||
if ( "parent".equals( field.getName() ) )
|
||||
{
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue