From 5c44ea19cc919882f10728ac06ff3a581f7bb06a Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Sun, 12 Nov 2017 08:26:20 -0500 Subject: [PATCH] removed compareTo per issue #928 --- .../dependencycheck/dependency/Dependency.java | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) 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. *