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:
Herve Boutemy 2009-09-10 14:14:16 +00:00
parent 77d2fb2068
commit 4d3e5b3bdd
1 changed files with 6 additions and 6 deletions

View File

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