Merge pull request #731 from JoaoGFarias/patch-1

Removing commented out code in JSONObject optDouble()
This commit is contained in:
Sean Leary
2023-03-11 19:28:01 -06:00
committed by GitHub

View File

@@ -1290,11 +1290,7 @@ public class JSONObject {
if (val == null) { if (val == null) {
return defaultValue; return defaultValue;
} }
final double doubleValue = val.doubleValue(); return val.doubleValue();
// if (Double.isNaN(doubleValue) || Double.isInfinite(doubleValue)) {
// return defaultValue;
// }
return doubleValue;
} }
/** /**