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

Comparing jsr166/src/main/java/util/AbstractQueue.java (file contents):
Revision 1.35 by jsr166, Tue Sep 11 15:10:56 2007 UTC vs.
Revision 1.36 by jsr166, Tue Sep 1 22:28:19 2009 UTC

# Line 154 | Line 154 | public abstract class AbstractQueue<E>
154          if (c == this)
155              throw new IllegalArgumentException();
156          boolean modified = false;
157 <        Iterator<? extends E> e = c.iterator();
158 <        while (e.hasNext()) {
159 <            if (add(e.next()))
157 >        for (E e : c)
158 >            if (add(e))
159                  modified = true;
161        }
160          return modified;
161      }
162  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines