From 0fbdd33c38884a7a4b90c0edb2da97b959eca52b Mon Sep 17 00:00:00 2001 From: TimReset Date: Wed, 1 Apr 2015 17:14:49 +0300 Subject: [PATCH] Replace to (wildcard). Otherwise List will call JSONArray(Object array) but is not right. --- JSONArray.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/JSONArray.java b/JSONArray.java index 3f05548d5..a0cdbb1ef 100644 --- a/JSONArray.java +++ b/JSONArray.java @@ -150,10 +150,10 @@ public JSONArray(String source) throws JSONException { * @param collection * A Collection. */ - public JSONArray(Collection collection) { + public JSONArray(Collection collection) { this.myArrayList = new ArrayList(); if (collection != null) { - Iterator iter = collection.iterator(); + Iterator iter = collection.iterator(); while (iter.hasNext()) { this.myArrayList.add(JSONObject.wrap(iter.next())); }