Skip to content

Commit 8bae09f

Browse files
author
John J. Aylward
committed
removes unnecessary comparison to true
1 parent 80e36eb commit 8bae09f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/org/json/junit/JSONObjectTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1727,7 +1727,7 @@ public void jsonObjectOptDefault() {
17271727
assertTrue("optBigInteger() should return default BigInteger",
17281728
BigInteger.TEN.compareTo(jsonObject.optBigInteger("myKey",BigInteger.TEN ))==0);
17291729
assertTrue("optBoolean() should return default boolean",
1730-
true == jsonObject.optBoolean("myKey", true));
1730+
jsonObject.optBoolean("myKey", true));
17311731
assertTrue("optInt() should return default int",
17321732
42 == jsonObject.optInt("myKey", 42));
17331733
assertTrue("optEnum() should return default Enum",
@@ -1757,7 +1757,7 @@ public void jsonObjectOptNoKey() {
17571757
assertTrue("optBigInteger() should return default BigInteger",
17581758
BigInteger.TEN.compareTo(jsonObject.optBigInteger("myKey",BigInteger.TEN ))==0);
17591759
assertTrue("optBoolean() should return default boolean",
1760-
true == jsonObject.optBoolean("myKey", true));
1760+
jsonObject.optBoolean("myKey", true));
17611761
assertTrue("optInt() should return default int",
17621762
42 == jsonObject.optInt("myKey", 42));
17631763
assertTrue("optEnum() should return default Enum",

0 commit comments

Comments
 (0)