o Generified code

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@814888 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-09-14 22:24:41 +00:00
parent 6f2797b973
commit 4d32ed118d
2 changed files with 2 additions and 4 deletions

View File

@ -33,7 +33,7 @@ import org.apache.maven.artifact.versioning.OverConstrainedVersionException;
import org.apache.maven.artifact.versioning.VersionRange; import org.apache.maven.artifact.versioning.VersionRange;
public interface Artifact public interface Artifact
extends Comparable extends Comparable<Artifact>
{ {
String LATEST_VERSION = "LATEST"; String LATEST_VERSION = "LATEST";

View File

@ -397,10 +397,8 @@ public class DefaultArtifact
} }
} }
public int compareTo( Object o ) public int compareTo( Artifact a )
{ {
Artifact a = (Artifact) o;
int result = groupId.compareTo( a.getGroupId() ); int result = groupId.compareTo( a.getGroupId() );
if ( result == 0 ) if ( result == 0 )
{ {