Apache Lucene open-source search software
GITHUB-912: Remove deprecated APIs; fix link
Uwe Schindlerd943b7621553
diff --git a/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java b/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.javaindex 4cef4b50b49..4402d296843 100644--- a/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java+++ b/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java@@ -34,7 +34,7 @@ import org.apache.lucene.util.Constants;* process equal to the size of the file being mapped. Before using this class, be sure your have* plenty of virtual address space, e.g. by using a 64 bit JRE, or a 32 bit JRE with indexes that* are guaranteed to fit within the address space. On 32 bit platforms also consult {@link- * #MMapDirectory(Path, LockFactory, int)} if you have problems with mmap failing because of+ * #MMapDirectory(Path, LockFactory, long)} if you have problems with mmap failing because of* fragmented address space. If you get an OutOfMemoryException, it is recommended to reduce the* chunk size, until it works.*@@ -114,17 +114,6 @@ public class MMapDirectory extends FSDirectory {this(path, FSLockFactory.getDefault());}- /**- * Create a new MMapDirectory for the named location and {@link FSLockFactory#getDefault()}. The- * directory is created at the named location if it does not yet exist.- *- * @deprecated use {@link #MMapDirectory(Path, long)} instead.- */- @Deprecated- public MMapDirectory(Path path, int maxChunkSize) throws IOException {- this(path, (long) maxChunkSize);- }-/*** Create a new MMapDirectory for the named location and {@link FSLockFactory#getDefault()}. The* directory is created at the named location if it does not yet exist.@@ -138,17 +127,6 @@ public class MMapDirectory extends FSDirectory {this(path, FSLockFactory.getDefault(), maxChunkSize);}- /**- * Create a new MMapDirectory for the named location and {@link FSLockFactory#getDefault()}. The- * directory is created at the named location if it does not yet exist.- *- * @deprecated use {@link #MMapDirectory(Path, LockFactory, long)} instead.- */- @Deprecated- public MMapDirectory(Path path, LockFactory lockFactory, int maxChunkSize) throws IOException {- this(path, lockFactory, (long) maxChunkSize);- }-/*** Create a new MMapDirectory for the named location, specifying the maximum chunk size used for* memory mapping. The directory is created at the named location if it does not yet exist.