bug fix - the compareTo needed to be case insensitive

Former-commit-id: d4507585c046d06002a58b1bc39220c68cc04e6d
This commit is contained in:
Jeremy Long
2015-04-05 08:35:31 -04:00
parent 34b82a3f84
commit 9cc6ca5ebe

View File

@@ -257,7 +257,7 @@ public class Evidence implements Serializable, Comparable<Evidence> {
} else if (me == null || other == null) {
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
* duplicative, check against nulls.
* Wrapper around {@link java.lang.Enum#compareTo(java.lang.Enum) Enum.compareTo} with an exhaustive, possibly duplicative,
* check against nulls.
*
* @param me the 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);
}
/**
* Standard toString() implementation.
*
* @return the string representation of the object
*/
@Override
public String toString() {
return "Evidence{" + "name=" + name + ", source=" + source + ", value=" + value + ", confidence=" + confidence + '}';
}
}