Skip to content

Apache Lucene open-source search software

Add missing javadocs.

Adrien Grand6448dce4ea5a
diff --git a/lucene/core/src/java/org/apache/lucene/index/MergePolicy.java b/lucene/core/src/java/org/apache/lucene/index/MergePolicy.java
index f6768da367b..fcc21052ba6 100644
--- a/lucene/core/src/java/org/apache/lucene/index/MergePolicy.java
+++ b/lucene/core/src/java/org/apache/lucene/index/MergePolicy.java
@@ -62,6 +62,9 @@ public abstract class MergePolicy implements java.io.Closeable, Cloneable {
/** A map of doc IDs. */
public static abstract class DocMap {
+ /** Sole constructor, typically invoked from sub-classes constructors. */
+ protected DocMap() {}
+
/** Return the new doc ID according to its old value. */
public abstract int map(int old);