From 33a19458e057fdf15271eefc2167fde805a83666 Mon Sep 17 00:00:00 2001
From: trobro
* In order to find out whether an instance of this class is of a certain type, the methods
@@ -224,6 +226,9 @@ public static JsonValue valueOf(long value) {
/**
* Returns a JsonValue instance that represents the given float value.
*
+ * Throws a NumberFormatException if the input parameter
+ * is Inf or NaN.
+ *
* @param value the value to get a JSON representation for
* @return a JSON value that represents the given value
*/
@@ -234,6 +239,9 @@ public static JsonValue valueOf(float value) {
/**
* Returns a JsonValue instance that represents the given double value.
*
+ * Throws a NumberFormatException if the input parameter
+ * is Inf or NaN.
+ *
* @param value the value to get a JSON representation for
* @return a JSON value that represents the given value
*/