Skip to content

Commit 2683b2b

Browse files
committed
use equals instead of == for strings
1 parent ba74588 commit 2683b2b

File tree

1 file changed

+1
-1
lines changed
  • test-app/build-tools/static-binding-generator/src/main/java/org/nativescript/staticbindinggenerator

1 file changed

+1
-1
lines changed

test-app/build-tools/static-binding-generator/src/main/java/org/nativescript/staticbindinggenerator/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ private static boolean isSuppressCallJSMethodExceptionsEnabled() throws IOExcept
7474
pjson = new JSONObject(jsonContent);
7575
if (pjson.has("android")) {
7676
JSONObject androidSettings = (JSONObject) pjson.get("android");
77-
if(androidSettings.has("suppressCallJSMethodExceptions") && androidSettings.get("suppressCallJSMethodExceptions").toString() == "true") {
77+
if(androidSettings.has("suppressCallJSMethodExceptions") && androidSettings.get("suppressCallJSMethodExceptions").toString().equals("true")) {
7878
return true;
7979
}
8080
}

0 commit comments

Comments
 (0)