We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14f7127 commit 0d71dcfCopy full SHA for 0d71dcf
src/test/java/org/json/junit/JSONArrayTest.java
@@ -259,6 +259,11 @@ public void verifyPutAll() {
259
jsonArray.length(),
260
len);
261
262
+ // collection as object
263
+ @SuppressWarnings("RedundantCast")
264
+ Object myListAsObject = (Object) myList;
265
+ jsonArray.putAll(myListAsObject);
266
+
267
for (int i = 0; i < myList.size(); i++) {
268
assertEquals("collection elements should be equal",
269
myList.get(i),
0 commit comments