Skip to content

Commit 9efbe0a

Browse files
authored
CLDR-17399 Fix infinite loops due to removing boxed primitive constructors (#3567)
1 parent b367445 commit 9efbe0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/cldr-apps/src/main/java/org/json/JSONObject.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ public JSONObject put(String key, Collection value) throws JSONException {
897897
* @throws JSONException If the key is null or if the number is invalid.
898898
*/
899899
public JSONObject put(String key, double value) throws JSONException {
900-
put(key, value);
900+
put(key, Double.valueOf(value));
901901
return this;
902902
}
903903

@@ -910,7 +910,7 @@ public JSONObject put(String key, double value) throws JSONException {
910910
* @throws JSONException If the key is null.
911911
*/
912912
public JSONObject put(String key, int value) throws JSONException {
913-
put(key, value);
913+
put(key, Integer.valueOf(value));
914914
return this;
915915
}
916916

@@ -923,7 +923,7 @@ public JSONObject put(String key, int value) throws JSONException {
923923
* @throws JSONException If the key is null.
924924
*/
925925
public JSONObject put(String key, long value) throws JSONException {
926-
put(key, value);
926+
put(key, Long.valueOf(value));
927927
return this;
928928
}
929929

0 commit comments

Comments
 (0)