MCPcopy Create free account
hub / github.com/Var3D/var3dframe / checkDouble

Method checkDouble

core/src/core/java/var3d/net/center/json/JSON.java:23–28  ·  view source on GitHub ↗

Returns the input if it is a JSON-permissible value; throws otherwise.

(double d)

Source from the content-addressed store, hash-verified

21 * Returns the input if it is a JSON-permissible value; throws otherwise.
22 */
23 static double checkDouble(double d) throws JSONException {
24 if (Double.isInfinite(d) || Double.isNaN(d)) {
25 throw new JSONException("Forbidden numeric value: " + d);
26 }
27 return d;
28 }
29
30 static Boolean toBoolean(Object value) {
31 if (value instanceof Boolean) {

Callers 4

putMethod · 0.95
putMethod · 0.95
accumulateMethod · 0.95
numberToStringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected