You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by GitBox <gi...@apache.org> on 2022/02/10 13:57:23 UTC

[GitHub] [lucene] mocobeta commented on a change in pull request #673: LUCENE-10420: Move functional interfaces in IOUtils to top-level interfaces

mocobeta commented on a change in pull request #673:
URL: https://github.com/apache/lucene/pull/673#discussion_r803700144



##########
File path: lucene/core/src/java/org/apache/lucene/util/IOUtils.java
##########
@@ -521,22 +523,11 @@ public static void fsync(Path fileToSync, boolean isDir) throws IOException {
    * A Function that may throw an IOException
    *
    * @see java.util.function.Function
+   * @deprecated was replaced by {@link org.apache.lucene.util.IOFunction}.
    */
   @FunctionalInterface
+  @Deprecated(forRemoval = true, since = "9.1")
   public interface IOFunction<T, R> {
     R apply(T t) throws IOException;
   }
-
-  /**
-   * A resource supplier function that may throw an IOException.
-   *
-   * <p>Note that this would open a resource such as a File. Consumers should make sure to close the
-   * resource (e.g., use try-with-resources)
-   *
-   * @see java.util.function.Supplier
-   */
-  @FunctionalInterface
-  public interface IOSupplier<T> {

Review comment:
       This was added in #643 by me and is still not shipped to the public (I will remove this also from the 9x branch.)




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org