From cfbb4c4f5434f62831f069e1add5b12609c1c7cc Mon Sep 17 00:00:00 2001 From: Jason van Zyl Date: Mon, 2 Mar 2009 23:58:51 +0000 Subject: [PATCH] o clean up unused methods in the resolution request git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@749480 13f79535-47bb-0310-9956-ffa450edef68 --- .../resolver/ArtifactResolutionRequest.java | 76 +------------------ 1 file changed, 4 insertions(+), 72 deletions(-) diff --git a/maven-compat/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionRequest.java b/maven-compat/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionRequest.java index 2ece31810c..80d452a1d0 100644 --- a/maven-compat/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionRequest.java +++ b/maven-compat/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionRequest.java @@ -23,12 +23,6 @@ public class ArtifactResolutionRequest private Set artifactDependencies; - private String groupId; - - private String artifactId; - - private String version; - private ArtifactRepository localRepository; private List remoteRepositories; @@ -37,15 +31,14 @@ public class ArtifactResolutionRequest private List listeners = new ArrayList(); - // This should really be a component. Different impls can can be composed to account for different forms of metadata. - private ArtifactMetadataSource metadataSource; - private Map managedVersionMap; private List conflictResolvers; + private ArtifactMetadataSource metadataSource; + public ArtifactResolutionRequest() - { + { } public ArtifactResolutionRequest( Artifact artifact, ArtifactRepository localRepository, List remoteRepositories ) @@ -67,11 +60,6 @@ public class ArtifactResolutionRequest return this; } - public boolean hasArtifact() - { - return artifact != null; - } - public ArtifactResolutionRequest setArtifactDependencies( Set artifactDependencies ) { this.artifactDependencies = artifactDependencies; @@ -84,57 +72,6 @@ public class ArtifactResolutionRequest return artifactDependencies; } - public String getGroupId() - { - if ( artifact != null ) - { - return artifact.getGroupId(); - } - - return groupId; - } - - public ArtifactResolutionRequest setGroupId( String groupId ) - { - this.groupId = groupId; - - return this; - } - - public String getArtifactId() - { - if ( artifact != null ) - { - return artifact.getArtifactId(); - } - - return artifactId; - } - - public ArtifactResolutionRequest setArtifactId( String artifactId ) - { - this.artifactId = artifactId; - - return this; - } - - public String getVersion() - { - if ( artifact != null ) - { - return artifact.getVersion(); - } - - return version; - } - - public ArtifactResolutionRequest setVersion( String version ) - { - this.version = version; - - return this; - } - public ArtifactRepository getLocalRepository() { return localRepository; @@ -234,12 +171,7 @@ public class ArtifactResolutionRequest { StringBuffer sb = new StringBuffer() .append( "REQUEST: " ).append( "\n" ) - .append(getGroupId()) - .append(":") - .append(getArtifactId()) - .append(":") - .append(getVersion() ).append( "\n" ) - .append( "artifact: " ).append( artifact ).append( "\n" ) + .append( "artifact: " ).append( artifact ).append( "\n" ) .append( "localRepository: " ).append( localRepository ).append( "\n" ) .append( "remoteRepositories: " ).append( remoteRepositories ).append( "\n" ) .append( "metadataSource: " ).append( metadataSource ).append( "\n" );