1
0
mirror of https://github.com/SKCraft/Launcher.git synced 2025-02-16 01:41:22 +01:00

Change Java runtime selector to show "unknown" instead of "null"

This commit is contained in:
Henry Le Grys 2022-04-18 19:21:20 +01:00
parent 6530ecee80
commit 53ba054c2c

View File

@ -108,6 +108,8 @@ public class JavaRuntime implements Comparable<JavaRuntime> {
@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);
}
}