Apache Lucene open-source search software
Remove deprecations in main (#978)
Uwe Schindlerfb617e29d058
diff --git a/lucene/core/src/java/org/apache/lucene/util/Constants.java b/lucene/core/src/java/org/apache/lucene/util/Constants.javaindex 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;}