Use if-else

This commit is contained in:
Gary Gregory 2024-06-23 14:17:17 -04:00
parent 3ed0b64c5d
commit d51fff2bdd

View File

@ -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) {