< prev index next >

src/java.base/share/classes/java/util/ArrayList.java

Print this page
rev 15716 : 8166840: Synthetic bridge constructor in ArrayList$Itr blocks inlining
Reviewed-by: vlivanov, mhaupt

*** 874,883 **** --- 874,885 ---- private class Itr implements Iterator<E> { int cursor; // index of next element to return int lastRet = -1; // index of last element returned; -1 if no such int expectedModCount = modCount; + Itr() {} + public boolean hasNext() { return cursor != size; } @SuppressWarnings("unchecked")
< prev index next >