mirror of https://github.com/apache/maven.git
Code cleanup - Maven requires Java 5+ : Remove unnecessary unboxing
This commit is contained in:
parent
96db1abbe9
commit
a2897f86b3
|
@ -69,7 +69,7 @@ public class ConsoleTransferListener
|
|||
for ( Map.Entry<TransferResource, Long> entry : downloads.entrySet() )
|
||||
{
|
||||
long total = entry.getKey().getContentLength();
|
||||
long complete = entry.getValue().longValue();
|
||||
long complete = entry.getValue();
|
||||
|
||||
buffer.append( getStatus( complete, total ) ).append( " " );
|
||||
}
|
||||
|
|
|
@ -101,7 +101,7 @@ public class DefaultArtifactResolver
|
|||
|
||||
public DefaultArtifactResolver()
|
||||
{
|
||||
int threads = Integer.getInteger( "maven.artifact.threads", 5 ).intValue();
|
||||
int threads = Integer.getInteger( "maven.artifact.threads", 5 );
|
||||
if ( threads <= 1 )
|
||||
{
|
||||
executor = new Executor()
|
||||
|
|
|
@ -75,7 +75,7 @@ public final class ModelUtils
|
|||
|
||||
String inherited = plugin.getInherited();
|
||||
|
||||
if ( ( inherited != null ) && !Boolean.valueOf( inherited ).booleanValue() )
|
||||
if ( ( inherited != null ) && !Boolean.valueOf( inherited ) )
|
||||
{
|
||||
it.remove();
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ public final class ModelUtils
|
|||
// 2. the parent's <inherited/> flag is not set
|
||||
// 3. the parent's <inherited/> flag is set to true
|
||||
if ( !handleAsInheritance || ( parentInherited == null )
|
||||
|| Boolean.valueOf( parentInherited ).booleanValue() )
|
||||
|| Boolean.valueOf( parentInherited ) )
|
||||
{
|
||||
Plugin childPlugin = (Plugin) childPlugins.get( parentPlugin.getKey() );
|
||||
|
||||
|
@ -216,7 +216,7 @@ public final class ModelUtils
|
|||
// from here to the end of the method is dealing with merging of the <executions/> section.
|
||||
String parentInherited = parent.getInherited();
|
||||
|
||||
boolean parentIsInherited = ( parentInherited == null ) || Boolean.valueOf( parentInherited ).booleanValue();
|
||||
boolean parentIsInherited = ( parentInherited == null ) || Boolean.valueOf( parentInherited );
|
||||
|
||||
List<PluginExecution> parentExecutions = parent.getExecutions();
|
||||
|
||||
|
@ -233,7 +233,7 @@ public final class ModelUtils
|
|||
String inherited = parentExecution.getInherited();
|
||||
|
||||
boolean parentExecInherited =
|
||||
parentIsInherited && ( ( inherited == null ) || Boolean.valueOf( inherited ).booleanValue() );
|
||||
parentIsInherited && ( ( inherited == null ) || Boolean.valueOf( inherited ) );
|
||||
|
||||
if ( !handleAsInheritance || parentExecInherited )
|
||||
{
|
||||
|
|
|
@ -389,7 +389,7 @@ public class DefaultModelInheritanceAssembler
|
|||
String parentInherited = parentPlugin.getInherited();
|
||||
|
||||
if ( !handleAsInheritance || ( parentInherited == null )
|
||||
|| Boolean.valueOf( parentInherited ).booleanValue() )
|
||||
|| Boolean.valueOf( parentInherited ) )
|
||||
{
|
||||
|
||||
ReportPlugin assembledPlugin = parentPlugin;
|
||||
|
@ -481,7 +481,7 @@ public class DefaultModelInheritanceAssembler
|
|||
// from here to the end of the method is dealing with merging of the <executions/> section.
|
||||
String parentInherited = parent.getInherited();
|
||||
|
||||
boolean parentIsInherited = ( parentInherited == null ) || Boolean.valueOf( parentInherited ).booleanValue();
|
||||
boolean parentIsInherited = ( parentInherited == null ) || Boolean.valueOf( parentInherited );
|
||||
|
||||
List parentReportSets = parent.getReportSets();
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ public class TransferListenerAdapter
|
|||
}
|
||||
if ( transferred != null )
|
||||
{
|
||||
event.setTransferredBytes( transferred.longValue() );
|
||||
event.setTransferredBytes( transferred );
|
||||
}
|
||||
|
||||
synchronized ( artifacts )
|
||||
|
|
|
@ -87,7 +87,7 @@ public final class CLIReportingUtils
|
|||
if ( timestamp != null )
|
||||
{
|
||||
SimpleDateFormat fmt = new SimpleDateFormat( "yyyy-MM-dd HH:mm:ssZ" );
|
||||
String ts = fmt.format( new Date( Long.valueOf( timestamp ).longValue() ) );
|
||||
String ts = fmt.format( new Date( Long.valueOf( timestamp ) ) );
|
||||
msg += ( rev != null ? "; " : "" ) + ts;
|
||||
}
|
||||
msg += ")";
|
||||
|
|
Loading…
Reference in New Issue