mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-14 15:53:36 +01:00
codacy suggested change
This commit is contained in:
@@ -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)) {
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user