Skip to content

Commit

Permalink
[bug] (init) Java version check fail (#9607)
Browse files Browse the repository at this point in the history
  • Loading branch information
MorningLight5 authored May 17, 2022
1 parent bfb1ab0 commit 682cc14
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 682cc14

Please sign in to comment.