# | Line 4427 | Line 4427 | public class ConcurrentHashMap<K,V> exte | |
---|---|---|
4427 | } | |
4428 | ||
4429 | public final boolean removeAll(Collection<?> c) { | |
4430 | + | if (c == null) throw new NullPointerException(); |
4431 | boolean modified = false; | |
4432 | for (Iterator<E> it = iterator(); it.hasNext();) { | |
4433 | if (c.contains(it.next())) { | |
# | Line 4438 | Line 4439 | public class ConcurrentHashMap<K,V> exte | |
4439 | } | |
4440 | ||
4441 | public final boolean retainAll(Collection<?> c) { | |
4442 | + | if (c == null) throw new NullPointerException(); |
4443 | boolean modified = false; | |
4444 | for (Iterator<E> it = iterator(); it.hasNext();) { | |
4445 | if (!c.contains(it.next())) { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |