mirror of https://github.com/apache/lucene.git
A couple changes with the new token api went into QueryParser.java but not in QueryParser.jj. A fresh javacc would lead to compilation errors.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@724032 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4a0a5664dd
commit
36a03da823
|
@ -554,12 +554,12 @@ public class QueryParser {
|
|||
org.apache.lucene.analysis.Token nextToken = null;
|
||||
|
||||
|
||||
boolean useNewAPI = TokenStream.useNewAPI();
|
||||
boolean useNewAPI = TokenStream.useNewAPIDefault();
|
||||
|
||||
if (useNewAPI) {
|
||||
boolean success = false;
|
||||
try {
|
||||
buffer.start();
|
||||
buffer.reset();
|
||||
success = true;
|
||||
} catch (IOException e) {
|
||||
// success==false if we hit an exception
|
||||
|
|
Loading…
Reference in New Issue