Use proper string equality

This commit is contained in:
Andrew Noyes 2021-05-14 00:03:03 +00:00
parent 4163270c02
commit e892ca00e4
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ class JNIUtil {
private static OS getRunningOS() {
String osname = System.getProperty("os.name").toLowerCase();
String arch = System.getProperty("os.arch");
if (arch != "amd64" && arch != "x86_64" && arch != "aarch64") {
if (!arch.equals("amd64") && !arch.equals("x86_64") && !arch.equals("aarch64")) {
throw new IllegalStateException("Unknown or unsupported arch: " + arch);
}
if (osname.startsWith("windows")) {