mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-03 22:50:27 +01:00
updates per issue #928
This commit is contained in:
@@ -752,6 +752,7 @@ public class Dependency extends EvidenceCollection implements Serializable {
|
||||
.append(actualFilePath)
|
||||
.append(filePath)
|
||||
.append(fileName)
|
||||
.append(packagePath)
|
||||
.append(md5sum)
|
||||
.append(sha1sum)
|
||||
.append(identifiers)
|
||||
|
||||
@@ -209,7 +209,7 @@ public class Evidence implements Serializable, Comparable<Evidence> {
|
||||
@Override
|
||||
public int compareTo(Evidence o) {
|
||||
if (o == null) {
|
||||
return 1;
|
||||
throw new NullPointerException("Unable to compare null evidence");
|
||||
}
|
||||
if (StringUtils.equalsIgnoreCase(source, o.source)) {
|
||||
if (StringUtils.equalsIgnoreCase(name, o.name)) {
|
||||
|
||||
@@ -262,7 +262,7 @@ public class Identifier implements Serializable, Comparable<Identifier> {
|
||||
@Override
|
||||
public int compareTo(Identifier o) {
|
||||
if (o == null) {
|
||||
return -1;
|
||||
throw new NullPointerException("Unable to compare a null identifier");
|
||||
}
|
||||
return new CompareToBuilder()
|
||||
.append(this.type, o.type)
|
||||
|
||||
Reference in New Issue
Block a user