You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ro...@apache.org on 2019/01/15 10:38:25 UTC

[lucene-solr] 06/09: Remove deprecated IOUtils static methods

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

romseygeek pushed a commit to branch master-deprecations
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git

commit ec80a12e68da1e472bc0a5e92ad395935971eb52
Author: Alan Woodward <ro...@apache.org>
AuthorDate: Mon Jan 14 18:03:54 2019 +0000

    Remove deprecated IOUtils static methods
---
 .../src/java/org/apache/lucene/util/Constants.java |  2 +-
 .../src/java/org/apache/lucene/util/IOUtils.java   | 33 ----------------------
 2 files changed, 1 insertion(+), 34 deletions(-)

diff --git a/lucene/core/src/java/org/apache/lucene/util/Constants.java b/lucene/core/src/java/org/apache/lucene/util/Constants.java
index 5678f30..a2f9986 100644
--- a/lucene/core/src/java/org/apache/lucene/util/Constants.java
+++ b/lucene/core/src/java/org/apache/lucene/util/Constants.java
@@ -88,5 +88,5 @@ public final class Constants {
   public static final boolean JRE_IS_MINIMUM_JAVA8 = JVM_MAJOR_VERSION > 1 || (JVM_MAJOR_VERSION == 1 && JVM_MINOR_VERSION >= 8);
   public static final boolean JRE_IS_MINIMUM_JAVA9 = JVM_MAJOR_VERSION > 1 || (JVM_MAJOR_VERSION == 1 && JVM_MINOR_VERSION >= 9);
   public static final boolean JRE_IS_MINIMUM_JAVA11 = JVM_MAJOR_VERSION > 1 || (JVM_MAJOR_VERSION == 1 && JVM_MINOR_VERSION >= 11);
-  
+
 }
diff --git a/lucene/core/src/java/org/apache/lucene/util/IOUtils.java b/lucene/core/src/java/org/apache/lucene/util/IOUtils.java
index a556789..7916ab1 100644
--- a/lucene/core/src/java/org/apache/lucene/util/IOUtils.java
+++ b/lucene/core/src/java/org/apache/lucene/util/IOUtils.java
@@ -414,39 +414,6 @@ public final class IOUtils {
 
     throw new RuntimeException(th);
   }
-
-  /**
-   * Rethrows the argument as {@code IOException} or {@code RuntimeException} 
-   * if it's not null.
-   * 
-   * @deprecated This method is deprecated in favor of {@link #rethrowAlways}. Code should
-   * be updated to {@link #rethrowAlways} and guarded with an additional null-argument check
-   * (because {@link #rethrowAlways} is not accepting null arguments). 
-   */
-  @Deprecated
-  public static void reThrow(Throwable th) throws IOException {
-    if (th != null) {
-      throw rethrowAlways(th);
-    }
-  }
-  
-  /**
-   * @deprecated This method is deprecated in favor of {@link #rethrowAlways}. Code should
-   * be updated to {@link #rethrowAlways} and guarded with an additional null-argument check
-   * (because {@link #rethrowAlways} is not accepting null arguments). 
-   */
-  @Deprecated
-  public static void reThrowUnchecked(Throwable th) {
-    if (th != null) {
-      if (th instanceof Error) {
-        throw (Error) th;
-      }
-      if (th instanceof RuntimeException) {
-        throw (RuntimeException) th;
-      }
-      throw new RuntimeException(th);
-    }    
-  }
   
   /**
    * Ensure that any writes to the given file is written to the storage device that contains it.