mirror of
https://github.com/ethauvin/JSON-java.git
synced 2025-06-17 07:50:52 -07:00
removes unnecessary comparison to true
This commit is contained in:
parent
80e36eb63c
commit
8bae09f81b
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue