forked from jasder/antlr
Small tidy for Java UnbufferedCharStream
This commit is contained in:
parent
802f4c4e71
commit
9c61db36b0
|
@ -206,9 +206,7 @@ public class UnbufferedCharStream implements CharStream {
|
|||
int index = p + i - 1;
|
||||
if ( index < 0 ) throw new IndexOutOfBoundsException();
|
||||
if ( index >= n ) return IntStream.EOF;
|
||||
int c = data[index];
|
||||
if ( c==IntStream.EOF ) return IntStream.EOF;
|
||||
return c;
|
||||
return data[index];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue