Skip to content

Commit

Permalink
[bug] (init) Java version check fail (apache#9607)
Browse files Browse the repository at this point in the history
  • Loading branch information
MorningLight5 authored and starocean999 committed May 19, 2022
1 parent 4dd696b commit eab9ad2
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 eab9ad2

Please sign in to comment.