Skip to content

Commit

Permalink
java: Compare strings correctly in ee55296
Browse files Browse the repository at this point in the history
  • Loading branch information
jrose-signal committed Aug 7, 2024
1 parent 83e1825 commit 669b43f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion java/shared/java/org/signal/libsignal/internal/Native.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private static void copyToTempDirAndLoad(InputStream in, String name) throws IOE
static void loadLibrary(String name) throws IOException {
String arch = System.getProperty("os.arch");
// Special-case: some Java implementations use "x86_64", but OpenJDK uses "amd64".
if (arch == "x86_64") {
if ("x86_64".equals(arch)) {
arch = "amd64";
}
for (String suffix : new String[]{ "_" + arch, "" }) {
Expand Down
2 changes: 1 addition & 1 deletion rust/bridge/jni/bin/Native.java.in
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public final class Native {
static void loadLibrary(String name) throws IOException {
String arch = System.getProperty("os.arch");
// Special-case: some Java implementations use "x86_64", but OpenJDK uses "amd64".
if (arch == "x86_64") {
if ("x86_64".equals(arch)) {
arch = "amd64";
}
for (String suffix : new String[]{ "_" + arch, "" }) {
Expand Down

0 comments on commit 669b43f

Please sign in to comment.