use ArtifactUtils to create IDs to avoid duplicate construction code

Submitted by: Stanislav Ochotnicky


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1060318 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2011-01-18 11:27:22 +00:00
parent 11f5546e6d
commit 347f9243b9
1 changed files with 2 additions and 2 deletions

View File

@ -216,7 +216,7 @@ class ReactorReader
public File findArtifact( Artifact artifact )
{
String projectKey = artifact.getGroupId() + ':' + artifact.getArtifactId() + ':' + artifact.getVersion();
String projectKey = ArtifactUtils.key( artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion() );
MavenProject project = projectsByGAV.get( projectKey );
@ -230,7 +230,7 @@ class ReactorReader
public List<String> findVersions( Artifact artifact )
{
String key = artifact.getGroupId() + ':' + artifact.getArtifactId();
String key = ArtifactUtils.versionlessKey( artifact.getGroupId(), artifact.getArtifactId() );
List<MavenProject> projects = projectsByGA.get( key );
if ( projects == null || projects.isEmpty() )