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:
Mark Robert Miller 2008-12-06 19:40:53 +00:00
parent 4a0a5664dd
commit 36a03da823
1 changed files with 2 additions and 2 deletions

View File

@ -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