# | Line 925 | Line 925 | public class ConcurrentHashMap<K, V> ext | |
---|---|---|
925 | * @throws NullPointerException if the specified key is null | |
926 | */ | |
927 | public boolean remove(Object key, Object value) { | |
928 | + | int hash = hash(key); // throws NullPointerException if key null |
929 | if (value == null) | |
930 | return false; | |
930 | – | int hash = hash(key); |
931 | return segmentFor(hash).remove(key, hash, value) != null; | |
932 | } | |
933 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |