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

Comparing jsr166/src/main/java/util/ArrayList.java (file contents):
Revision 1.41 by jsr166, Sun Nov 13 21:07:40 2016 UTC vs.
Revision 1.42 by jsr166, Mon Nov 14 21:16:43 2016 UTC

# Line 1207 | Line 1207 | public class ArrayList<E> extends Abstra
1207                          consumer.accept((E) elementData[offset + (i++)]);
1208                      }
1209                      // update once at end of iteration to reduce heap write traffic
1210 <                    lastRet = cursor = i;
1210 >                    cursor = i;
1211 >                    lastRet = i - 1;
1212                      checkForComodification();
1213                  }
1214  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines