mirror of
https://github.com/apache/commons-collections.git
synced 2025-03-01 22:39:08 +00:00
Use if-else
This commit is contained in:
parent
3ed0b64c5d
commit
d51fff2bdd
@ -1030,10 +1030,8 @@ public class AbstractHashedMap<K, V> extends AbstractMap<K, V> implements Iterab
|
||||
if (map.get(key) != null || !map.containsKey(key)) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
if (!value.equals(map.get(key))) {
|
||||
return false;
|
||||
}
|
||||
} else if (!value.equals(map.get(key))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} catch (final ClassCastException | NullPointerException ignored) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user