codacy suggested change

This commit is contained in:
Jeremy Long
2017-11-13 06:42:18 -05:00
parent 16977e4869
commit 0536fa6c2a
3 changed files with 2 additions and 3 deletions

View File

@@ -209,7 +209,7 @@ public class Evidence implements Serializable, Comparable<Evidence> {
@Override
public int compareTo(Evidence o) {
if (o == null) {
throw new NullPointerException("Unable to compare null evidence");
throw new IllegalArgumentException("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) {
throw new NullPointerException("Unable to compare a null identifier");
throw new IllegalArgumentException("Unable to compare a null identifier");
}
return new CompareToBuilder()
.append(this.type, o.type)

View File

@@ -22,7 +22,6 @@ import edu.emory.mathcs.backport.java.util.Arrays;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.SortedSet;
import org.junit.After;
import org.junit.Assume;