mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-15 00:03:43 +01:00
removed compareTo per issue #928
This commit is contained in:
@@ -45,7 +45,7 @@ import org.slf4j.LoggerFactory;
|
||||
* @author Jeremy Long
|
||||
*/
|
||||
@ThreadSafe
|
||||
public class Dependency extends EvidenceCollection implements Serializable, Comparable<Dependency> {
|
||||
public class Dependency extends EvidenceCollection implements Serializable {
|
||||
|
||||
/**
|
||||
* The serial version UID for serialization.
|
||||
@@ -709,18 +709,6 @@ public class Dependency extends EvidenceCollection implements Serializable, Comp
|
||||
return isVirtual;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation of the Comparable<Dependency> interface. The
|
||||
* comparison is solely based on the file path.
|
||||
*
|
||||
* @param o a dependency to compare
|
||||
* @return an integer representing the natural ordering
|
||||
*/
|
||||
@Override
|
||||
public int compareTo(Dependency o) {
|
||||
return this.getFilePath().compareToIgnoreCase(o.getFilePath());
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation of the equals method.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user