Separate bug fix to Java runtimes
This commit is contained in:
parent
31f4dcc7cf
commit
f650a0be67
|
@ -441,17 +441,15 @@ public class BufferedTokenStream implements TokenStream {
|
|||
|
||||
@Override
|
||||
public String getText() {
|
||||
fill();
|
||||
return getText(Interval.of(0,size()-1));
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getText(Interval interval) {
|
||||
lazyInit();
|
||||
int start = interval.a;
|
||||
int stop = interval.b;
|
||||
if ( start<0 || stop<0 ) return "";
|
||||
sync(stop);
|
||||
fill();
|
||||
if ( stop>=tokens.size() ) stop = tokens.size()-1;
|
||||
|
||||
StringBuilder buf = new StringBuilder();
|
||||
|
|
Loading…
Reference in New Issue