mirror of https://github.com/apache/maven.git
Remove unnecessary unboxing
This commit is contained in:
parent
c30c76e423
commit
9a55914061
|
@ -360,7 +360,7 @@ public class StringSearchModelInterpolator
|
|||
fieldIsPrimitiveByClass.put( fieldType, fieldType.isPrimitive() );
|
||||
}
|
||||
|
||||
if ( fieldIsPrimitiveByClass.get( fieldType ).booleanValue() )
|
||||
if ( fieldIsPrimitiveByClass.get( fieldType ) )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -114,7 +114,7 @@ public class TransferListenerAdapter
|
|||
}
|
||||
else
|
||||
{
|
||||
transferred = transferred.longValue() + length;
|
||||
transferred = transferred + length;
|
||||
}
|
||||
transfers.put( transferEvent.getResource(), transferred );
|
||||
}
|
||||
|
@ -123,7 +123,7 @@ public class TransferListenerAdapter
|
|||
event.setDataBuffer( buffer );
|
||||
event.setDataOffset( 0 );
|
||||
event.setDataLength( length );
|
||||
event.setTransferredBytes( transferred.longValue() );
|
||||
event.setTransferredBytes( transferred );
|
||||
|
||||
listener.transferProgress( event );
|
||||
}
|
||||
|
|
|
@ -149,13 +149,13 @@ public class ProjectInheritanceTest
|
|||
|
||||
Integer count = (Integer) validPluginCounts.get( pluginArtifactId );
|
||||
|
||||
if ( count.intValue() > 0 )
|
||||
if ( count > 0 )
|
||||
{
|
||||
fail( "Multiple copies of plugin: " + pluginArtifactId + " found in POM." );
|
||||
}
|
||||
else
|
||||
{
|
||||
count = count.intValue() + 1;
|
||||
count = count + 1;
|
||||
|
||||
validPluginCounts.put( pluginArtifactId, count );
|
||||
}
|
||||
|
|
|
@ -654,7 +654,7 @@ public class DefaultProjectBuilder
|
|||
profilesXml = new File( basedir, "profiles.xml" ).exists();
|
||||
profilesXmls.put( basedir, profilesXml );
|
||||
}
|
||||
if ( profilesXml.booleanValue() )
|
||||
if ( profilesXml )
|
||||
{
|
||||
return modelId;
|
||||
}
|
||||
|
|
|
@ -61,7 +61,7 @@ public class ConsoleMavenTransferListener
|
|||
// NOTE: This null check guards against http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6312056
|
||||
if ( complete != null )
|
||||
{
|
||||
buffer.append( getStatus( complete.longValue(), total ) ).append( " " );
|
||||
buffer.append( getStatus( complete, total ) ).append( " " );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue