maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1337728 - /maven/plugin-tools/trunk/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/util/PluginUtils.java
Date Sat, 12 May 2012 23:15:39 GMT
Author: olamy
Date: Sat May 12 23:15:38 2012
New Revision: 1337728

URL: http://svn.apache.org/viewvc?rev=1337728&view=rev
Log:
use Integer.valueOf rather than new Integer

Modified:
    maven/plugin-tools/trunk/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/util/PluginUtils.java

Modified: maven/plugin-tools/trunk/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/util/PluginUtils.java
URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/util/PluginUtils.java?rev=1337728&r1=1337727&r2=1337728&view=diff
==============================================================================
--- maven/plugin-tools/trunk/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/util/PluginUtils.java
(original)
+++ maven/plugin-tools/trunk/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/util/PluginUtils.java
Sat May 12 23:15:38 2012
@@ -757,16 +757,16 @@ public final class PluginUtils
                 if ( packageNames.get( name ) != null )
                 {
                     int next = ( packageNames.get( name ) ).intValue() + 1;
-                    packageNames.put( name, new Integer( next ) );
+                    packageNames.put( name,  Integer.valueOf( next ) );
                 }
                 else
                 {
-                    packageNames.put( name, new Integer( 1 ) );
+                    packageNames.put( name, Integer.valueOf( 1 ) );
                 }
             }
             else
             {
-                packageNames.put( "", new Integer( 1 ) );
+                packageNames.put( "", Integer.valueOf( 1 ) );
             }
         }
 



Mime
View raw message