Skip to content

Commit

Permalink
Change Java runtime selector to show "unknown" instead of "null"
Browse files Browse the repository at this point in the history
  • Loading branch information
hedgehog1029 committed Apr 18, 2022
1 parent 6530ece commit 53ba054
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ public int compareTo(JavaRuntime o) {

@Override
public String toString() {
String version = this.version != null ? this.version : "unknown";

return String.format("Java %s (%s) (%s)", version, is64Bit ? "64-bit" : "32-bit", dir);
}
}

0 comments on commit 53ba054

Please sign in to comment.