You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2022/09/26 16:36:06 UTC

[lucene] branch main updated: GITHUB-912: Remove deprecated APIs; fix link

This is an automated email from the ASF dual-hosted git repository.

uschindler pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/main by this push:
     new d943b762155 GITHUB-912: Remove deprecated APIs; fix link
d943b762155 is described below

commit d943b76215534875915f28f711c5d1250cfd7570
Author: Uwe Schindler <us...@apache.org>
AuthorDate: Mon Sep 26 18:36:09 2022 +0200

    GITHUB-912: Remove deprecated APIs; fix link
---
 .../org/apache/lucene/store/MMapDirectory.java     | 24 +---------------------
 1 file changed, 1 insertion(+), 23 deletions(-)

diff --git a/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java b/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java
index 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.