# | Line 4770 | Line 4770 | public class ConcurrentHashMap<K, V> | |
---|---|---|
4770 | } | |
4771 | ||
4772 | public final boolean add(Entry<K,V> e) { | |
4773 | < | K key = e.getKey(); |
4774 | < | V value = e.getValue(); |
4775 | < | if (key == null || value == null) |
4776 | < | throw new NullPointerException(); |
4777 | < | return map.internalPut(key, value, false) == null; |
4773 | > | return map.internalPut(e.getKey(), e.getValue(), false) == null; |
4774 | } | |
4775 | public final boolean addAll(Collection<? extends Entry<K,V>> c) { | |
4776 | boolean added = false; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |