mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-23 17:41:28 +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(actualFilePath)
|
||||||
.append(filePath)
|
.append(filePath)
|
||||||
.append(fileName)
|
.append(fileName)
|
||||||
|
.append(packagePath)
|
||||||
.append(md5sum)
|
.append(md5sum)
|
||||||
.append(sha1sum)
|
.append(sha1sum)
|
||||||
.append(identifiers)
|
.append(identifiers)
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ public class Evidence implements Serializable, Comparable<Evidence> {
|
|||||||
@Override
|
@Override
|
||||||
public int compareTo(Evidence o) {
|
public int compareTo(Evidence o) {
|
||||||
if (o == null) {
|
if (o == null) {
|
||||||
return 1;
|
throw new NullPointerException("Unable to compare null evidence");
|
||||||
}
|
}
|
||||||
if (StringUtils.equalsIgnoreCase(source, o.source)) {
|
if (StringUtils.equalsIgnoreCase(source, o.source)) {
|
||||||
if (StringUtils.equalsIgnoreCase(name, o.name)) {
|
if (StringUtils.equalsIgnoreCase(name, o.name)) {
|
||||||
|
|||||||
@@ -262,7 +262,7 @@ public class Identifier implements Serializable, Comparable<Identifier> {
|
|||||||
@Override
|
@Override
|
||||||
public int compareTo(Identifier o) {
|
public int compareTo(Identifier o) {
|
||||||
if (o == null) {
|
if (o == null) {
|
||||||
return -1;
|
throw new NullPointerException("Unable to compare a null identifier");
|
||||||
}
|
}
|
||||||
return new CompareToBuilder()
|
return new CompareToBuilder()
|
||||||
.append(this.type, o.type)
|
.append(this.type, o.type)
|
||||||
|
|||||||
Reference in New Issue
Block a user