ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/CopyOnWriteArrayList.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/CopyOnWriteArrayList.java (file contents):
Revision 1.87 by jsr166, Mon Dec 12 20:53:11 2011 UTC vs.
Revision 1.88 by dl, Wed Dec 21 19:38:28 2011 UTC

# 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 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines