Fix CharacterIterator re-reading the last part of a file

This commit is contained in:
Lonami Exo 2018-07-23 17:45:07 +02:00
parent de5da4168c
commit 19b976807e
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ public class CharacterIterator implements Iterator<Character>, Iterable<Characte
readNext();
index = 0;
}
return length != -1;
return index < length;
}
@Override