diff --git a/lucene/src/java/org/apache/lucene/search/IndexSearcher.java b/lucene/src/java/org/apache/lucene/search/IndexSearcher.java index e3e0a1b6602..f7619fe3bd1 100644 --- a/lucene/src/java/org/apache/lucene/search/IndexSearcher.java +++ b/lucene/src/java/org/apache/lucene/search/IndexSearcher.java @@ -429,7 +429,7 @@ public class IndexSearcher { *

NOTE: this does not compute scores by default. If you * need scores, create a {@link TopFieldCollector} * instance by calling {@link TopFieldCollector#create} and - * then pass that to {@link #search(Weight, Filter, + * then pass that to {@link #search(IndexReader.AtomicReaderContext[], Weight, Filter, * Collector)}.

*/ protected TopFieldDocs search(Weight weight, Filter filter, int nDocs, @@ -475,7 +475,7 @@ public class IndexSearcher { *

NOTE: this does not compute scores by default. If you * need scores, create a {@link TopFieldCollector} * instance by calling {@link TopFieldCollector#create} and - * then pass that to {@link #search(Weight, Filter, + * then pass that to {@link #search(IndexReader.AtomicReaderContext[], Weight, Filter, * Collector)}.

*/ protected TopFieldDocs search(AtomicReaderContext[] leaves, Weight weight, Filter filter, int nDocs, diff --git a/lucene/src/java/org/apache/lucene/util/automaton/fst/FST.java b/lucene/src/java/org/apache/lucene/util/automaton/fst/FST.java index 60dc55c137c..4af5add0149 100644 --- a/lucene/src/java/org/apache/lucene/util/automaton/fst/FST.java +++ b/lucene/src/java/org/apache/lucene/util/automaton/fst/FST.java @@ -483,7 +483,7 @@ public class FST { * this changes the provided arc (2nd arg) in-place and returns * it. * - * @returns Returns the second argument (arc). + * @return Returns the second argument (arc). */ public Arc readFirstTargetArc(Arc follow, Arc arc) throws IOException { //int pos = address;