File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
spring-core/src/main/java/org/springframework/core Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 17
17
package org .springframework .core ;
18
18
19
19
/**
20
- * Internal helper class used to find the Java/JVM version
21
- * that Spring is operating on, to allow for automatically
22
- * adapting to the present platform's capabilities.
20
+ * Internal helper class used to find the Java/JVM version that Spring is
21
+ * operating on, to allow for automatically adapting to the present platform's
22
+ * capabilities.
23
23
*
24
24
* <p>Note that Spring requires JVM 1.6 or higher, as of Spring 4.0.
25
25
*
26
26
* @author Rod Johnson
27
27
* @author Juergen Hoeller
28
28
* @author Rick Evans
29
+ * @author Sam Brannen
29
30
*/
30
31
public abstract class JdkVersion {
31
32
@@ -62,7 +63,7 @@ public abstract class JdkVersion {
62
63
/**
63
64
* Constant identifying the 1.9 JVM (Java 9).
64
65
*/
65
- public static final int JAVA_19 = 5 ;
66
+ public static final int JAVA_19 = 6 ;
66
67
67
68
68
69
private static final String javaVersion ;
@@ -101,12 +102,11 @@ public static String getJavaVersion() {
101
102
/**
102
103
* Get the major version code. This means we can do things like
103
104
* {@code if (getMajorJavaVersion() >= JAVA_17)}.
104
- * @return a code comparable to the JAVA_XX codes in this class
105
- * @see #JAVA_13
106
- * @see #JAVA_14
107
- * @see #JAVA_15
105
+ * @return a code comparable to the {@code JAVA_XX} codes in this class
108
106
* @see #JAVA_16
109
- * @see #JAVA_17
107
+ * @see #JAVA_17
108
+ * @see #JAVA_18
109
+ * @see #JAVA_19
110
110
*/
111
111
public static int getMajorJavaVersion () {
112
112
return majorJavaVersion ;
You can’t perform that action at this time.
0 commit comments