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:
parent
80ec6a5e29
commit
8864189257
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue