Skip to content

Apache Lucene open-source search software

LUCENE-7407: fix stale javadocs

Mike McCandless7377d0ef9ea8
diff --git a/lucene/core/src/java/org/apache/lucene/index/SortedNumericDocValues.java b/lucene/core/src/java/org/apache/lucene/index/SortedNumericDocValues.java
index 0a888f81900..8c114957956 100644
--- a/lucene/core/src/java/org/apache/lucene/index/SortedNumericDocValues.java
+++ b/lucene/core/src/java/org/apache/lucene/index/SortedNumericDocValues.java
@@ -32,8 +32,8 @@ public abstract class SortedNumericDocValues extends DocIdSetIterator {
protected SortedNumericDocValues() {}
/**
- * Retrieve the value for the current document at the specified index.
- * An index ranges from {@code 0} to {@code count()-1}.
+ * Iterates to the next value in the current document. Do not call this more than {@link #docValueCount} times
+ * for the document.
*/
public abstract long nextValue() throws IOException;