From fb617e29d058d136ed2ab294cb3bc9e1a0a90f8e Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Fri, 1 Jul 2022 16:32:50 +0200 Subject: [PATCH] Remove deprecations in main (#978) --- .../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 System.getProperty("java.version"). - * - * @deprecated To detect Java versions use {@link Runtime#version()} - */ - @Deprecated public static final String JAVA_VERSION = System.getProperty("java.version"); - /** The value of System.getProperty("os.name"). * */ 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; }