diff --git a/lucene/core/src/java/org/apache/lucene/index/TermsEnum.java b/lucene/core/src/java/org/apache/lucene/index/TermsEnum.java index 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. *
* NOTE: the returned iterator may return deleted documents, so * deleted documents have to be checked on top of the {@link PostingsEnum}.