maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aherit...@apache.org
Subject [09/10] git commit: Code cleanup - Redundant array creation for calling varargs method
Date Fri, 14 Jun 2013 08:11:35 GMT
Code cleanup - Redundant array creation for calling varargs method


Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/da48cfff
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/da48cfff
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/da48cfff

Branch: refs/heads/master
Commit: da48cfff8381a28f69bc22693d19b97484d46ab0
Parents: d92746d
Author: Arnaud Héritier <aheritier@apache.org>
Authored: Tue Jun 11 22:27:26 2013 +0200
Committer: Arnaud Héritier <aheritier@apache.org>
Committed: Tue Jun 11 22:27:26 2013 +0200

----------------------------------------------------------------------
 .../apache/maven/repository/internal/RepositorySystemTest.java   | 2 +-
 .../interpolation/AbstractStringBasedModelInterpolator.java      | 2 +-
 .../org/apache/maven/AbstractCoreMavenComponentTestCase.java     | 4 ++--
 .../interpolation/AbstractStringBasedModelInterpolator.java      | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven/blob/da48cfff/maven-aether-provider/src/test/java/org/apache/maven/repository/internal/RepositorySystemTest.java
----------------------------------------------------------------------
diff --git a/maven-aether-provider/src/test/java/org/apache/maven/repository/internal/RepositorySystemTest.java
b/maven-aether-provider/src/test/java/org/apache/maven/repository/internal/RepositorySystemTest.java
index ffe1bc1..36bb9c5 100644
--- a/maven-aether-provider/src/test/java/org/apache/maven/repository/internal/RepositorySystemTest.java
+++ b/maven-aether-provider/src/test/java/org/apache/maven/repository/internal/RepositorySystemTest.java
@@ -173,7 +173,7 @@ public class RepositorySystemTest
         req3.setArtifact( new DefaultArtifact( "ut.simple:artifact:zip:classifier:1.0" )
);
         req3.addRepository( newTestRepository() );
 
-        List<ArtifactRequest> requests = Arrays.asList( new ArtifactRequest[] { req1,
req2, req3 } );
+        List<ArtifactRequest> requests = Arrays.asList( req1, req2, req3 );
 
         List<ArtifactResult> results = system.resolveArtifacts( session, requests );
 

http://git-wip-us.apache.org/repos/asf/maven/blob/da48cfff/maven-compat/src/main/java/org/apache/maven/project/interpolation/AbstractStringBasedModelInterpolator.java
----------------------------------------------------------------------
diff --git a/maven-compat/src/main/java/org/apache/maven/project/interpolation/AbstractStringBasedModelInterpolator.java
b/maven-compat/src/main/java/org/apache/maven/project/interpolation/AbstractStringBasedModelInterpolator.java
index e5b6b0f..dfc3dee 100644
--- a/maven-compat/src/main/java/org/apache/maven/project/interpolation/AbstractStringBasedModelInterpolator.java
+++ b/maven-compat/src/main/java/org/apache/maven/project/interpolation/AbstractStringBasedModelInterpolator.java
@@ -65,7 +65,7 @@ public abstract class AbstractStringBasedModelInterpolator
     extends AbstractLogEnabled
     implements ModelInterpolator, Initializable
 {
-    private static final List<String> PROJECT_PREFIXES = Arrays.asList( new String[]{
"pom.", "project." } );
+    private static final List<String> PROJECT_PREFIXES = Arrays.asList( "pom.", "project."
);
 
     private static final List<String> TRANSLATED_PATH_EXPRESSIONS;
 

http://git-wip-us.apache.org/repos/asf/maven/blob/da48cfff/maven-core/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java
----------------------------------------------------------------------
diff --git a/maven-core/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java
b/maven-core/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java
index 813a128..6534fc1 100644
--- a/maven-core/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java
+++ b/maven-core/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java
@@ -108,11 +108,11 @@ public abstract class AbstractCoreMavenComponentTestCase
             .setPom( pom )
             .setProjectPresent( true )
             .setShowErrors( true )
-            .setPluginGroups( Arrays.asList( new String[] { "org.apache.maven.plugins" }
) )
+            .setPluginGroups( Arrays.asList( "org.apache.maven.plugins" ) )
             .setLocalRepository( getLocalRepository() )
             .setRemoteRepositories( getRemoteRepositories() )
             .setPluginArtifactRepositories( getPluginArtifactRepositories() )
-            .setGoals( Arrays.asList( new String[] { "package" } ) );
+            .setGoals( Arrays.asList( "package" ) );
 
         return request;
     }

http://git-wip-us.apache.org/repos/asf/maven/blob/da48cfff/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/AbstractStringBasedModelInterpolator.java
----------------------------------------------------------------------
diff --git a/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/AbstractStringBasedModelInterpolator.java
b/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/AbstractStringBasedModelInterpolator.java
index f025036..863eb44 100644
--- a/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/AbstractStringBasedModelInterpolator.java
+++ b/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/AbstractStringBasedModelInterpolator.java
@@ -68,7 +68,7 @@ public abstract class AbstractStringBasedModelInterpolator
      */
     private static final String BUILD_TIMESTAMP_FORMAT_PROPERTY = "maven.build.timestamp.format";
 
-    private static final List<String> PROJECT_PREFIXES = Arrays.asList( new String[]{
"pom.", "project." } );
+    private static final List<String> PROJECT_PREFIXES = Arrays.asList( "pom.", "project."
);
 
     private static final Collection<String> TRANSLATED_PATH_EXPRESSIONS;
 


Mime
View raw message