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

Comparing jsr166/src/main/java/util/AbstractList.java (file contents):
Revision 1.20 by jsr166, Sun May 18 23:59:57 2008 UTC vs.
Revision 1.21 by jsr166, Tue Sep 1 22:28:19 2009 UTC

# Line 256 | Line 256 | public abstract class AbstractList<E> ex
256      public boolean addAll(int index, Collection<? extends E> c) {
257          rangeCheckForAdd(index);
258          boolean modified = false;
259 <        Iterator<? extends E> e = c.iterator();
260 <        while (e.hasNext()) {
261 <            add(index++, e.next());
259 >        for (E e : c) {
260 >            add(index++, e);
261              modified = true;
262          }
263          return modified;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines