updates per issue #928

This commit is contained in:
Jeremy Long
2017-11-12 08:55:57 -05:00
parent 5c44ea19cc
commit f474276807
3 changed files with 3 additions and 2 deletions

View File

@@ -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)

View File

@@ -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)) {

View File

@@ -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)