remove compiler warnings

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1307095 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2012-03-29 20:25:02 +00:00
parent e3374c9c9b
commit 13745b230d
2 changed files with 4 additions and 2 deletions

View File

@ -20,6 +20,7 @@ package org.apache.lucene.queries.function;
import org.apache.lucene.search.*; import org.apache.lucene.search.*;
import org.apache.lucene.index.AtomicReaderContext; import org.apache.lucene.index.AtomicReaderContext;
import org.apache.lucene.index.IndexReader; import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.Term;
import org.apache.lucene.util.Bits; import org.apache.lucene.util.Bits;
import org.apache.lucene.util.ToStringUtils; import org.apache.lucene.util.ToStringUtils;
@ -52,7 +53,7 @@ public class BoostedQuery extends Query {
} }
@Override @Override
public void extractTerms(Set terms) { public void extractTerms(Set<Term> terms) {
q.extractTerms(terms); q.extractTerms(terms);
} }

View File

@ -19,6 +19,7 @@ package org.apache.lucene.queries.function;
import org.apache.lucene.index.AtomicReaderContext; import org.apache.lucene.index.AtomicReaderContext;
import org.apache.lucene.index.IndexReader; import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.Term;
import org.apache.lucene.search.*; import org.apache.lucene.search.*;
import org.apache.lucene.index.MultiFields; import org.apache.lucene.index.MultiFields;
import org.apache.lucene.util.Bits; import org.apache.lucene.util.Bits;
@ -57,7 +58,7 @@ public class FunctionQuery extends Query {
} }
@Override @Override
public void extractTerms(Set terms) {} public void extractTerms(Set<Term> terms) {}
protected class FunctionWeight extends Weight { protected class FunctionWeight extends Weight {
protected IndexSearcher searcher; protected IndexSearcher searcher;