jdk/src/share/classes/java/util/concurrent/ArrayBlockingQueue.java
changeset 4110 ac033ba6ede4
parent 2 90ce3da70b43
child 5506 202f599c92aa
--- a/jdk/src/share/classes/java/util/concurrent/ArrayBlockingQueue.java	Fri Oct 30 10:54:50 2009 -0700
+++ b/jdk/src/share/classes/java/util/concurrent/ArrayBlockingQueue.java	Mon Nov 02 17:25:38 2009 -0800
@@ -218,8 +218,8 @@
         if (capacity < c.size())
             throw new IllegalArgumentException();
 
-        for (Iterator<? extends E> it = c.iterator(); it.hasNext();)
-            add(it.next());
+        for (E e : c)
+            add(e);
     }
 
     /**