mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-07 03:06:03 +08:00
Merge pull request #731 from JoaoGFarias/patch-1
Removing commented out code in JSONObject optDouble()
This commit is contained in:
@@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user