Reference IntStream.EOF directly

This commit is contained in:
Sam Harwell 2012-12-20 16:49:20 -06:00
parent 6a5f609797
commit f3f8b425c3
2 changed files with 3 additions and 3 deletions

View File

@ -146,7 +146,7 @@ public class ANTLRInputStream implements CharStream {
@Override
public void consume() {
if (p >= n) {
assert LA(1) == CharStream.EOF;
assert LA(1) == IntStream.EOF;
throw new IllegalStateException("cannot consume EOF");
}

View File

@ -130,7 +130,7 @@ public class UnbufferedCharStream implements CharStream {
@Override
public void consume() {
if (LA(1) == CharStream.EOF) {
if (LA(1) == IntStream.EOF) {
throw new IllegalStateException("cannot consume EOF");
}
@ -168,7 +168,7 @@ public class UnbufferedCharStream implements CharStream {
*/
protected int fill(int n) {
for (int i=0; i<n; i++) {
if (this.n > 0 && data[this.n - 1] == CharStream.EOF) {
if (this.n > 0 && data[this.n - 1] == IntStream.EOF) {
return i;
}