From 57787548a088a45ff902d41f52f843b2fc07d3fd Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Tue, 16 Apr 2024 14:23:48 -0500 Subject: [PATCH] CLDR-17548 deprecated re-box primitives in deprecated use of org.json in deprecated SurveyAjax - fix an infinite recursion - unbreak 'recent items' --- tools/cldr-apps/src/main/java/org/json/JSONArray.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cldr-apps/src/main/java/org/json/JSONArray.java b/tools/cldr-apps/src/main/java/org/json/JSONArray.java index ef3fc5b7871..48e7bd1a962 100644 --- a/tools/cldr-apps/src/main/java/org/json/JSONArray.java +++ b/tools/cldr-apps/src/main/java/org/json/JSONArray.java @@ -555,7 +555,7 @@ public JSONArray put(double value) throws JSONException { * @return this. */ public JSONArray put(int value) { - put(value); + put(new Integer(value)); return this; } @@ -566,7 +566,7 @@ public JSONArray put(int value) { * @return this. */ public JSONArray put(long value) { - put(value); + put(new Long(value)); return this; }