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
commit 8353b9c3f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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