diff --git a/dependency-check-core/src/main/java/org/owasp/dependencycheck/dependency/Dependency.java b/dependency-check-core/src/main/java/org/owasp/dependencycheck/dependency/Dependency.java index d5bff2a55..a54120deb 100644 --- a/dependency-check-core/src/main/java/org/owasp/dependencycheck/dependency/Dependency.java +++ b/dependency-check-core/src/main/java/org/owasp/dependencycheck/dependency/Dependency.java @@ -45,7 +45,7 @@ import org.slf4j.LoggerFactory; * @author Jeremy Long */ @ThreadSafe -public class Dependency extends EvidenceCollection implements Serializable, Comparable { +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. *