Skip to content

Commit 6dfb55d

Browse files
authored
Revert "LUCENE-9021 QueryParser: re-use the LookaheadSuccess exception (apache#962)"
This reverts commit ccf3e60.
1 parent ccf3e60 commit 6dfb55d

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

gradle/generation/javacc.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,6 @@ configure(project(":lucene:queryparser")) {
120120
text = text.replace(
121121
"new java.util.ArrayList<int[]>",
122122
"new java.util.ArrayList<>")
123-
text = text.replace(
124-
"final private LookaheadSuccess jj_ls =",
125-
"static final private LookaheadSuccess jj_ls =")
126123
return text
127124
})
128125
}

lucene/CHANGES.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,6 @@ Optimizations
253253

254254
* LUCENE-9536: Reduced memory usage for OrdinalMap when a segment has all
255255
values. (Julie Tibshirani via Adrien Grand)
256-
257-
* LUCENE-9021: QueryParser: re-use the LookaheadSuccess exception. (Przemek Bruski via Mikhail Khludnev)
258256

259257
Bug Fixes
260258
---------------------

lucene/queryparser/src/java/org/apache/lucene/queryparser/classic/QueryParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ private Token jj_consume_token(int kind) throws ParseException {
869869

870870
@SuppressWarnings("serial")
871871
static private final class LookaheadSuccess extends java.lang.Error { }
872-
static final private LookaheadSuccess jj_ls = new LookaheadSuccess();
872+
final private LookaheadSuccess jj_ls = new LookaheadSuccess();
873873
private boolean jj_scan_token(int kind) {
874874
if (jj_scanpos == jj_lastpos) {
875875
jj_la--;

0 commit comments

Comments
 (0)