This commit is contained in:
Kohsuke Kawaguchi
2012-04-24 17:21:33 -07:00
parent 0b69743792
commit 706cdac4cc

View File

@@ -40,6 +40,7 @@ public abstract class PagedIterator<T> implements Iterator<T> {
private void fetch() {
while (current==null || current.length<=pos) {
current = base.next();
wrapUp(current);
pos = 0;
}
// invariant at the end: there's some data to retrieve