mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-04-10 02:44:02 +02:00
suppressed warnings
This commit is contained in:
@@ -127,9 +127,11 @@ public class Evidence implements Serializable, Comparable<Evidence> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the value of value. If setUsed is set to false this call to get will not mark the evidence as used.
|
* Get the value of value. If setUsed is set to false this call to get will
|
||||||
|
* not mark the evidence as used.
|
||||||
*
|
*
|
||||||
* @param setUsed whether or not this call to getValue should cause the used flag to be updated
|
* @param setUsed whether or not this call to getValue should cause the used
|
||||||
|
* flag to be updated
|
||||||
* @return the value of value
|
* @return the value of value
|
||||||
*/
|
*/
|
||||||
public String getValue(Boolean setUsed) {
|
public String getValue(Boolean setUsed) {
|
||||||
@@ -213,6 +215,7 @@ public class Evidence implements Serializable, Comparable<Evidence> {
|
|||||||
* @param that an object to check the equality of.
|
* @param that an object to check the equality of.
|
||||||
* @return whether the two objects are equal.
|
* @return whether the two objects are equal.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object that) {
|
public boolean equals(Object that) {
|
||||||
if (this == that) {
|
if (this == that) {
|
||||||
@@ -223,6 +226,8 @@ public class Evidence implements Serializable, Comparable<Evidence> {
|
|||||||
}
|
}
|
||||||
final Evidence e = (Evidence) that;
|
final Evidence e = (Evidence) that;
|
||||||
|
|
||||||
|
//TODO the call to ObjectUtils.equals needs to be replaced when we
|
||||||
|
//stop supporting Jenkins 1.6 requirement.
|
||||||
return StringUtils.equalsIgnoreCase(name, e.name)
|
return StringUtils.equalsIgnoreCase(name, e.name)
|
||||||
&& StringUtils.equalsIgnoreCase(source, e.source)
|
&& StringUtils.equalsIgnoreCase(source, e.source)
|
||||||
&& StringUtils.equalsIgnoreCase(value, e.value)
|
&& StringUtils.equalsIgnoreCase(value, e.value)
|
||||||
@@ -235,6 +240,7 @@ public class Evidence implements Serializable, Comparable<Evidence> {
|
|||||||
* @param o the evidence being compared
|
* @param o the evidence being compared
|
||||||
* @return an integer indicating the ordering of the two objects
|
* @return an integer indicating the ordering of the two objects
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
@Override
|
@Override
|
||||||
public int compareTo(Evidence o) {
|
public int compareTo(Evidence o) {
|
||||||
if (o == null) {
|
if (o == null) {
|
||||||
@@ -243,6 +249,8 @@ public class Evidence implements Serializable, Comparable<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)) {
|
||||||
if (StringUtils.equalsIgnoreCase(value, o.value)) {
|
if (StringUtils.equalsIgnoreCase(value, o.value)) {
|
||||||
|
//TODO the call to ObjectUtils.equals needs to be replaced when we
|
||||||
|
//stop supporting Jenkins 1.6 requirement.
|
||||||
if (ObjectUtils.equals(confidence, o.confidence)) {
|
if (ObjectUtils.equals(confidence, o.confidence)) {
|
||||||
return 0; //they are equal
|
return 0; //they are equal
|
||||||
} else {
|
} else {
|
||||||
@@ -260,8 +268,9 @@ public class Evidence implements Serializable, Comparable<Evidence> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wrapper around {@link java.lang.String#compareToIgnoreCase(java.lang.String) String.compareToIgnoreCase} with an
|
* Wrapper around
|
||||||
* exhaustive, possibly duplicative, check against nulls.
|
* {@link java.lang.String#compareToIgnoreCase(java.lang.String) String.compareToIgnoreCase}
|
||||||
|
* with an exhaustive, possibly duplicative, 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
|
||||||
|
|||||||
Reference in New Issue
Block a user