Apache Lucene open-source search software
LUCENE-6271: docs: TermsEnum.postings(...) will not return null
David Smiley79c298854727
diff --git a/lucene/core/src/java/org/apache/lucene/index/TermsEnum.java b/lucene/core/src/java/org/apache/lucene/index/TermsEnum.javaindex 7bbb3f7ddae..983bd9cfa8f 100644--- a/lucene/core/src/java/org/apache/lucene/index/TermsEnum.java+++ b/lucene/core/src/java/org/apache/lucene/index/TermsEnum.java@@ -159,8 +159,7 @@ public abstract class TermsEnum implements BytesRefIterator {/** Get {@link PostingsEnum} for the current term, with* control over whether freqs, positions, offsets or payloads* are required. Do not call this when the enum is- * unpositioned. This method may return null if the postings- * information required is not available from the index+ * unpositioned. This method will not return null.* <p>* <b>NOTE</b>: the returned iterator may return deleted documents, so* deleted documents have to be checked on top of the {@link PostingsEnum}.