Remove unnecessary unboxing

This commit is contained in:
Stephen Connolly 2014-01-06 10:32:16 +00:00
parent c30c76e423
commit 9a55914061
5 changed files with 7 additions and 7 deletions

View File

@ -360,7 +360,7 @@ public class StringSearchModelInterpolator
fieldIsPrimitiveByClass.put( fieldType, fieldType.isPrimitive() );
}
if ( fieldIsPrimitiveByClass.get( fieldType ).booleanValue() )
if ( fieldIsPrimitiveByClass.get( fieldType ) )
{
return false;
}

View File

@ -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 );
}

View File

@ -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 );
}

View File

@ -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;
}

View File

@ -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( " " );
}
}