Skip to content

Commit

Permalink
no restriction to major version 70
Browse files Browse the repository at this point in the history
  • Loading branch information
siom79 committed Aug 20, 2024
1 parent 554a6c6 commit c85abbf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ private static String getJdkVersion(int major, int minor) {
return "JDK 1.3";
} else if (major == 48) {
return "JDK 1.4";
} else if (major >= 49 && major <= 70) {
// JDK 5 to 26, according to: https://andbin.github.io/java-versions-cheat-sheet/
} else if (major >= 49) {
// according to: https://andbin.github.io/java-versions-cheat-sheet/
return "JDK " + (major - 44);
}
return "Version " + major + "." + minor;
Expand Down

0 comments on commit c85abbf

Please sign in to comment.