From 36a03da823334fcf1b4d0bf428027e2eb3d8fe1f Mon Sep 17 00:00:00 2001 From: Mark Robert Miller Date: Sat, 6 Dec 2008 19:40:53 +0000 Subject: [PATCH] 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 --- src/java/org/apache/lucene/queryParser/QueryParser.jj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/lucene/queryParser/QueryParser.jj b/src/java/org/apache/lucene/queryParser/QueryParser.jj index 059851c4e8b..fe95ead076a 100644 --- a/src/java/org/apache/lucene/queryParser/QueryParser.jj +++ b/src/java/org/apache/lucene/queryParser/QueryParser.jj @@ -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