mirror of https://github.com/apache/maven.git
coding style fix
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@813453 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
77d2fb2068
commit
4d3e5b3bdd
|
@ -87,7 +87,7 @@ public final class ArtifactUtils
|
|||
public static String key( Artifact artifact )
|
||||
{
|
||||
return key( artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion() );
|
||||
}
|
||||
}
|
||||
|
||||
public static String key( String groupId, String artifactId, String version )
|
||||
{
|
||||
|
@ -103,19 +103,19 @@ public final class ArtifactUtils
|
|||
{
|
||||
throw new NullPointerException( "version is null" );
|
||||
}
|
||||
|
||||
|
||||
return groupId + ":" + artifactId + ":" + version;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static Map<String,Artifact> artifactMapByVersionlessId( Collection<Artifact> artifacts )
|
||||
{
|
||||
Map<String,Artifact> artifactMap = new LinkedHashMap<String,Artifact>();
|
||||
|
||||
if ( artifacts != null )
|
||||
{
|
||||
for (Artifact artifact : artifacts)
|
||||
for ( Artifact artifact : artifacts )
|
||||
{
|
||||
artifactMap.put(versionlessKey(artifact), artifact);
|
||||
artifactMap.put( versionlessKey( artifact ), artifact );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue