mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-21 00:29:21 +01:00
removed compareTo per issue #928
This commit is contained in:
@@ -45,7 +45,7 @@ import org.slf4j.LoggerFactory;
|
|||||||
* @author Jeremy Long
|
* @author Jeremy Long
|
||||||
*/
|
*/
|
||||||
@ThreadSafe
|
@ThreadSafe
|
||||||
public class Dependency extends EvidenceCollection implements Serializable, Comparable<Dependency> {
|
public class Dependency extends EvidenceCollection implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The serial version UID for serialization.
|
* The serial version UID for serialization.
|
||||||
@@ -709,18 +709,6 @@ public class Dependency extends EvidenceCollection implements Serializable, Comp
|
|||||||
return isVirtual;
|
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.
|
* Implementation of the equals method.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user