jdk/src/share/classes/java/util/AbstractCollection.java
changeset 17441 5ae43433d158
parent 14342 8435a30053c1
child 22114 e9be73bceec1
--- a/jdk/src/share/classes/java/util/AbstractCollection.java	Tue May 07 11:31:08 2013 -0700
+++ b/jdk/src/share/classes/java/util/AbstractCollection.java	Tue May 07 12:05:52 2013 -0700
@@ -368,6 +368,7 @@
      * @see #contains(Object)
      */
     public boolean removeAll(Collection<?> c) {
+        Objects.requireNonNull(c);
         boolean modified = false;
         Iterator<?> it = iterator();
         while (it.hasNext()) {
@@ -401,6 +402,7 @@
      * @see #contains(Object)
      */
     public boolean retainAll(Collection<?> c) {
+        Objects.requireNonNull(c);
         boolean modified = false;
         Iterator<E> it = iterator();
         while (it.hasNext()) {