mirror of https://github.com/apache/maven.git
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:
parent
6f2797b973
commit
4d32ed118d
|
@ -33,7 +33,7 @@ import org.apache.maven.artifact.versioning.OverConstrainedVersionException;
|
|||
import org.apache.maven.artifact.versioning.VersionRange;
|
||||
|
||||
public interface Artifact
|
||||
extends Comparable
|
||||
extends Comparable<Artifact>
|
||||
{
|
||||
String LATEST_VERSION = "LATEST";
|
||||
|
||||
|
|
|
@ -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() );
|
||||
if ( result == 0 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue