mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-03 03:15:32 -04:00
removes unnecessary comparison to true
This commit is contained in:
parent
80e36eb63c
commit
8bae09f81b
@ -1727,7 +1727,7 @@ public class JSONObjectTest {
|
||||
assertTrue("optBigInteger() should return default BigInteger",
|
||||
BigInteger.TEN.compareTo(jsonObject.optBigInteger("myKey",BigInteger.TEN ))==0);
|
||||
assertTrue("optBoolean() should return default boolean",
|
||||
true == jsonObject.optBoolean("myKey", true));
|
||||
jsonObject.optBoolean("myKey", true));
|
||||
assertTrue("optInt() should return default int",
|
||||
42 == jsonObject.optInt("myKey", 42));
|
||||
assertTrue("optEnum() should return default Enum",
|
||||
@ -1757,7 +1757,7 @@ public class JSONObjectTest {
|
||||
assertTrue("optBigInteger() should return default BigInteger",
|
||||
BigInteger.TEN.compareTo(jsonObject.optBigInteger("myKey",BigInteger.TEN ))==0);
|
||||
assertTrue("optBoolean() should return default boolean",
|
||||
true == jsonObject.optBoolean("myKey", true));
|
||||
jsonObject.optBoolean("myKey", true));
|
||||
assertTrue("optInt() should return default int",
|
||||
42 == jsonObject.optInt("myKey", 42));
|
||||
assertTrue("optEnum() should return default Enum",
|
||||
|
Loading…
x
Reference in New Issue
Block a user