1
0
Fork 0
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:
John J. Aylward 2016-08-09 16:11:46 -04:00
parent 80e36eb63c
commit 8bae09f81b

View file

@ -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",