Skip to content
Permalink
Browse files
[bug] (init) Java version check fail (#9607)
  • Loading branch information
tianhui5 committed May 17, 2022
1 parent bfb1ab0 commit 682cc141828b5295095b26596a2f2eed5856889e
Showing 1 changed file with 1 addition and 1 deletion.
@@ -66,7 +66,7 @@ public static String getJavaVersionFromFullVersion(String fullVersionStr) {
* Output: 13, 8
*/
public static int getJavaVersionAsInteger(String javaVersionStr) {
String[] parts = javaVersionStr.split("\\.");
String[] parts = javaVersionStr.split("\\.|\\+");
if (parts[0].equals("1")) {
return Integer.valueOf(parts[1]);
} else {

0 comments on commit 682cc14

Please sign in to comment.