Use proper string equality
This commit is contained in:
parent
4163270c02
commit
e892ca00e4
|
@ -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")) {
|
||||
|
|
Loading…
Reference in New Issue