mirror of
https://github.com/apache/lucene.git
synced 2025-02-28 21:39:25 +00:00
Remove deprecations in main (#978)
This commit is contained in:
parent
8a70988e63
commit
fb617e29d0
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user