# | Line 621 | Line 621 | public class CopyOnWriteArrayList<E> | |
---|---|---|
621 | * @see #remove(Object) | |
622 | */ | |
623 | public boolean removeAll(Collection<?> c) { | |
624 | + | if (c == null) throw new NullPointerException(); |
625 | final ReentrantLock lock = this.lock; | |
626 | lock.lock(); | |
627 | try { | |
# | Line 663 | Line 664 | public class CopyOnWriteArrayList<E> | |
664 | * @see #remove(Object) | |
665 | */ | |
666 | public boolean retainAll(Collection<?> c) { | |
667 | + | if (c == null) throw new NullPointerException(); |
668 | final ReentrantLock lock = this.lock; | |
669 | lock.lock(); | |
670 | try { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |