jdk/src/share/classes/java/util/IdentityHashMap.java
changeset 19855 bfe130545fe0
parent 19208 1e3d351eba80
child 21655 55f32ae4f920
--- a/jdk/src/share/classes/java/util/IdentityHashMap.java	Fri Sep 13 12:20:53 2013 +0100
+++ b/jdk/src/share/classes/java/util/IdentityHashMap.java	Fri Sep 13 11:18:44 2013 -0700
@@ -997,6 +997,7 @@
          * behavior when c is a smaller "normal" (non-identity-based) Set.
          */
         public boolean removeAll(Collection<?> c) {
+            Objects.requireNonNull(c);
             boolean modified = false;
             for (Iterator<K> i = iterator(); i.hasNext(); ) {
                 if (c.contains(i.next())) {
@@ -1212,6 +1213,7 @@
          * behavior when c is a smaller "normal" (non-identity-based) Set.
          */
         public boolean removeAll(Collection<?> c) {
+            Objects.requireNonNull(c);
             boolean modified = false;
             for (Iterator<Map.Entry<K,V>> i = iterator(); i.hasNext(); ) {
                 if (c.contains(i.next())) {