restore-lenient-jsonarray fix some sonarcube issues

This commit is contained in:
Sean Leary
2026-06-15 20:56:17 -05:00
parent c073157a61
commit ad26e94274
@@ -1557,9 +1557,9 @@ public class JSONArrayTest {
JSONParserConfiguration jsonParserConfiguration = new JSONParserConfiguration();
if (jsonParserConfiguration.isStrictMode()) {
try {
JSONArray jsonArray = new JSONArray(str);
new JSONArray(str);
fail("Expected to throw exception due to invalid string");
} catch (JSONException e) { }
} catch (JSONException e) { /* no action is needed here */ }
} else {
JSONArray jsonArray = new JSONArray(str);
assertEquals("JSONArray in non-strictMode should contain a null entry",