format else

[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9401]
This commit is contained in:
parrt 2011-11-19 12:48:15 -08:00
parent 7f042393d2
commit c1b77ac6a8
1 changed files with 4 additions and 2 deletions

View File

@ -153,7 +153,8 @@ public abstract class LookaheadStream<T> extends FastQueue<T> {
for (int i = 0; i < currentElementIndex - index; i++) {
consume();
}
} else {
}
else {
currentElementIndex = index;
p = index - bufferStartIndex;
}
@ -163,7 +164,8 @@ public abstract class LookaheadStream<T> extends FastQueue<T> {
int bufferIndex = p - k;
if (bufferIndex == -1) {
return prevElement;
} else if (bufferIndex >= 0 && bufferIndex < data.size()) {
}
else if (bufferIndex >= 0 && bufferIndex < data.size()) {
return data.get(bufferIndex);
}