Skip to content

Commit 0fbdd33

Browse files
committed
Replace <Object> to <?> (wildcard).
Otherwise List<?> will call JSONArray(Object array) but is not right.
1 parent 9b6872b commit 0fbdd33

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

JSONArray.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ public JSONArray(String source) throws JSONException {
150150
* @param collection
151151
* A Collection.
152152
*/
153-
public JSONArray(Collection<Object> collection) {
153+
public JSONArray(Collection<?> collection) {
154154
this.myArrayList = new ArrayList<Object>();
155155
if (collection != null) {
156-
Iterator<Object> iter = collection.iterator();
156+
Iterator<?> iter = collection.iterator();
157157
while (iter.hasNext()) {
158158
this.myArrayList.add(JSONObject.wrap(iter.next()));
159159
}

0 commit comments

Comments
 (0)