# | 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 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |