diff --git a/tools/cldr-apps/src/main/java/org/json/JSONObject.java b/tools/cldr-apps/src/main/java/org/json/JSONObject.java index 11738203420..161e28c5a8f 100644 --- a/tools/cldr-apps/src/main/java/org/json/JSONObject.java +++ b/tools/cldr-apps/src/main/java/org/json/JSONObject.java @@ -897,7 +897,7 @@ public JSONObject put(String key, Collection value) throws JSONException { * @throws JSONException If the key is null or if the number is invalid. */ public JSONObject put(String key, double value) throws JSONException { - put(key, value); + put(key, Double.valueOf(value)); return this; } @@ -910,7 +910,7 @@ public JSONObject put(String key, double value) throws JSONException { * @throws JSONException If the key is null. */ public JSONObject put(String key, int value) throws JSONException { - put(key, value); + put(key, Integer.valueOf(value)); return this; } @@ -923,7 +923,7 @@ public JSONObject put(String key, int value) throws JSONException { * @throws JSONException If the key is null. */ public JSONObject put(String key, long value) throws JSONException { - put(key, value); + put(key, Long.valueOf(value)); return this; }