mirror of https://github.com/apache/maven.git
Code cleanup - Redundant array creation for calling varargs method
This commit is contained in:
parent
d92746dc25
commit
da48cfff83
|
@ -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 );
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue