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/07/01 14:33:04 UTC

[lucene] branch main updated: Remove deprecations in main (#978)

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 fb617e29d05 Remove deprecations in main (#978)
fb617e29d05 is described below

commit fb617e29d058d136ed2ab294cb3bc9e1a0a90f8e
Author: Uwe Schindler <us...@apache.org>
AuthorDate: Fri Jul 1 16:32:50 2022 +0200

    Remove deprecations in main (#978)
---
 .../src/java/org/apache/lucene/util/Constants.java | 48 ----------------------
 1 file changed, 48 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 e2014ce91e4..d7d33c01482 100644
--- a/lucene/core/src/java/org/apache/lucene/util/Constants.java
+++ b/lucene/core/src/java/org/apache/lucene/util/Constants.java
@@ -26,30 +26,6 @@ public final class Constants {
   /** JVM vendor name. */
   public static final String JVM_NAME = System.getProperty("java.vm.name");
 
-  /**
-   * Get the full version string of the current runtime.
-   *
-   * @deprecated To detect Java versions use {@link Runtime#version()}
-   */
-  @Deprecated public static final String JVM_VERSION = Runtime.version().toString();
-
-  /**
-   * Gets the specification version of the current runtime. This is the feature version converted to
-   * String.
-   *
-   * @see java.lang.Runtime.Version#feature()
-   * @deprecated To detect Java versions use {@link Runtime#version()}
-   */
-  @Deprecated
-  public static final String JVM_SPEC_VERSION = Integer.toString(Runtime.version().feature());
-
-  /**
-   * The value of <code>System.getProperty("java.version")</code>.
-   *
-   * @deprecated To detect Java versions use {@link Runtime#version()}
-   */
-  @Deprecated public static final String JAVA_VERSION = System.getProperty("java.version");
-
   /** The value of <code>System.getProperty("os.name")</code>. * */
   public static final String OS_NAME = System.getProperty("os.name");
   /** True iff running on Linux. */
@@ -96,28 +72,4 @@ public final class Constants {
     }
     JRE_IS_64BIT = is64Bit;
   }
-
-  /**
-   * Always true.
-   *
-   * @deprecated This constant is useless and always {@code true}. To detect Java versions use
-   *     {@link Runtime#version()}
-   */
-  @Deprecated public static final boolean JRE_IS_MINIMUM_JAVA8 = true;
-
-  /**
-   * Always true.
-   *
-   * @deprecated This constant is useless and always {@code true}. To detect Java versions use
-   *     {@link Runtime#version()}
-   */
-  @Deprecated public static final boolean JRE_IS_MINIMUM_JAVA9 = true;
-
-  /**
-   * Always true.
-   *
-   * @deprecated This constant is useless and always {@code true}. To detect Java versions use
-   *     {@link Runtime#version()}
-   */
-  @Deprecated public static final boolean JRE_IS_MINIMUM_JAVA11 = true;
 }