Apache Lucene open-source search software
fix jdocs; fix unsupported overridden ops in DocsAndPositionsEnum
Michael McCandlessc1a666b60412
diff --git a/lucene/src/java/org/apache/lucene/index/DocsAndPositionsEnum.java b/lucene/src/java/org/apache/lucene/index/DocsAndPositionsEnum.javaindex a6c6e76fba9..0ffc26457bd 100644--- a/lucene/src/java/org/apache/lucene/index/DocsAndPositionsEnum.java+++ b/lucene/src/java/org/apache/lucene/index/DocsAndPositionsEnum.java@@ -38,7 +38,13 @@ public abstract class DocsAndPositionsEnum extends DocsEnum {public abstract boolean hasPayload();- public final int read(int[] docs, int[] freqs) {+ @Override+ public final int read() {+ throw new UnsupportedOperationException();+ }++ @Override+ public BulkReadResult getBulkResult() {throw new UnsupportedOperationException();}}diff --git a/lucene/src/java/org/apache/lucene/index/Terms.java b/lucene/src/java/org/apache/lucene/index/Terms.javaindex 40a54b36b38..85a9ef23df4 100644--- a/lucene/src/java/org/apache/lucene/index/Terms.java+++ b/lucene/src/java/org/apache/lucene/index/Terms.java@@ -57,8 +57,8 @@ public abstract class Terms {}}- /** Get DocsEnum for the specified term. This method may- * return null if the term does not exist. */+ /** Get {@link DocsEnum} for the specified term. This+ * method may return null if the term does not exist. */public DocsEnum docs(Bits skipDocs, BytesRef text, DocsEnum reuse) throws IOException {final TermsEnum termsEnum = getThreadTermsEnum();if (termsEnum.seek(text) == TermsEnum.SeekStatus.FOUND) {@@ -68,9 +68,9 @@ public abstract class Terms {}}- /** Get DocsEnum for the specified term. This method will- * may return null if the term does not exists, or- * positions were not indexed. */+ /** Get {@link DocsEnum} for the specified term. This+ * method will may return null if the term does not+ * exists, or positions were not indexed. */public DocsAndPositionsEnum docsAndPositions(Bits skipDocs, BytesRef text, DocsAndPositionsEnum reuse) throws IOException {final TermsEnum termsEnum = getThreadTermsEnum();if (termsEnum.seek(text) == TermsEnum.SeekStatus.FOUND) {