Fix CharacterIterator re-reading the last part of a file
This commit is contained in:
parent
de5da4168c
commit
19b976807e
|
@ -31,7 +31,7 @@ public class CharacterIterator implements Iterator<Character>, Iterable<Characte
|
|||
readNext();
|
||||
index = 0;
|
||||
}
|
||||
return length != -1;
|
||||
return index < length;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue