Code cleanup - Redundant array creation for calling varargs method

This commit is contained in:
Arnaud Héritier 2013-06-11 22:27:26 +02:00
parent d92746dc25
commit da48cfff83
4 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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

View File

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