mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-27 11:31:24 +01:00
bug fix - the compareTo needed to be case insensitive
Former-commit-id: d4507585c046d06002a58b1bc39220c68cc04e6d
This commit is contained in:
@@ -257,7 +257,7 @@ public class Evidence implements Serializable, Comparable<Evidence> {
|
|||||||
} else if (me == null || other == null) {
|
} else if (me == null || other == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return me.equals(other);
|
return me.equalsIgnoreCase(other);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -296,8 +296,8 @@ public class Evidence implements Serializable, Comparable<Evidence> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wrapper around {@link java.lang.Enum#compareTo(java.lang.Enum) Enum.compareTo} with an exhaustive, possibly
|
* Wrapper around {@link java.lang.Enum#compareTo(java.lang.Enum) Enum.compareTo} with an exhaustive, possibly duplicative,
|
||||||
* duplicative, check against nulls.
|
* check against nulls.
|
||||||
*
|
*
|
||||||
* @param me the value to be compared
|
* @param me the value to be compared
|
||||||
* @param other the other value to be compared
|
* @param other the other value to be compared
|
||||||
@@ -313,4 +313,14 @@ public class Evidence implements Serializable, Comparable<Evidence> {
|
|||||||
}
|
}
|
||||||
return me.compareTo(other);
|
return me.compareTo(other);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Standard toString() implementation.
|
||||||
|
*
|
||||||
|
* @return the string representation of the object
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "Evidence{" + "name=" + name + ", source=" + source + ", value=" + value + ", confidence=" + confidence + '}';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user