# | Line 4754 | Line 4754 | public class ConcurrentHashMap<K, V> | |
---|---|---|
4754 | V v; | |
4755 | if ((v = value) == null) | |
4756 | throw new UnsupportedOperationException(); | |
4757 | – | if (e == null) |
4758 | – | throw new NullPointerException(); |
4757 | return map.internalPut(e, v, true) == null; | |
4758 | } | |
4759 | public boolean addAll(Collection<? extends K> c) { | |
# | Line 4764 | Line 4762 | public class ConcurrentHashMap<K, V> | |
4762 | if ((v = value) == null) | |
4763 | throw new UnsupportedOperationException(); | |
4764 | for (K e : c) { | |
4767 | – | if (e == null) |
4768 | – | throw new NullPointerException(); |
4765 | if (map.internalPut(e, v, true) == null) | |
4766 | added = true; | |
4767 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |