Value cannot be null (Eclipse)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1436070 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2013-01-21 01:32:09 +00:00
parent 80ec6a5e29
commit 8864189257
3 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ public abstract class AbstractKeyAnalyzer<K> implements KeyAnalyzer<K> {
if (o1 == null) {
return o2 == null ? 0 : -1;
} else if (o2 == null) {
return o1 == null ? 0 : 1;
return 1;
}
return ((Comparable<K>)o1).compareTo(o2);

View File

@ -150,7 +150,7 @@ abstract class AbstractTrie<K, V> extends AbstractMap<K, V>
if (key == null) {
return other == null;
} else if (other == null) {
return key == null;
return false;
}
return keyAnalyzer.compare(key, other) == 0;

View File

@ -181,7 +181,7 @@ public class ByteArrayKeyAnalyzer extends AbstractKeyAnalyzer<byte[]> {
if (o1 == null) {
return o2 == null ? 0 : -1;
} else if (o2 == null) {
return o1 == null ? 0 : 1;
return 1;
}
if (o1.length != o2.length) {