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 minghong.zhou committed May 23, 2022
1 parent e9b575f commit 28cb368
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 28cb368

Please sign in to comment.