Skip to content

Commit

Permalink
CLDR-17399 Fix infinite loops due to removing boxed primitive constru…
Browse files Browse the repository at this point in the history
…ctors (#3567)
  • Loading branch information
btangmu authored Mar 13, 2024
1 parent b367445 commit 9efbe0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/cldr-apps/src/main/java/org/json/JSONObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand All @@ -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;
}

Expand Down

0 comments on commit 9efbe0a

Please sign in to comment.