Changeset 6615 in josm for trunk/src/org/json/JSONArray.java
- Timestamp:
- 2014-01-03T19:32:18+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/org/json/JSONArray.java ¶
r6484 r6615 83 83 * The arrayList where the JSONArray's properties are kept. 84 84 */ 85 private final ArrayList myArrayList; 85 private final ArrayList<Object> myArrayList; 86 86 87 87 /** … … 89 89 */ 90 90 public JSONArray() { 91 this.myArrayList = new ArrayList(); 91 this.myArrayList = new ArrayList<Object>(); 92 92 } 93 93 … … 151 151 * A Collection. 152 152 */ 153 public JSONArray(Collection collection) { 154 this.myArrayList = new ArrayList(); 153 public JSONArray(Collection<?> collection) { 154 this.myArrayList = new ArrayList<Object>(); 155 155 if (collection != null) { 156 Iterator iter = collection.iterator(); 156 Iterator<?> iter = collection.iterator(); 157 157 while (iter.hasNext()) { 158 158 this.myArrayList.add(JSONObject.wrap(iter.next())); … … 594 594 * @return this. 595 595 */ 596 public JSONArray put(Collection value) { 596 public JSONArray put(Collection<?> value) { 597 597 this.put(new JSONArray(value)); 598 598 return this; … … 647 647 * @return this. 648 648 */ 649 public JSONArray put(Map value) { 649 public JSONArray put(Map<?, ?> value) { 650 650 this.put(new JSONObject(value)); 651 651 return this; … … 696 696 * If the index is negative or if the value is not finite. 697 697 */ 698 public JSONArray put(int index, Collection value) throws JSONException { 698 public JSONArray put(int index, Collection<?> value) throws JSONException { 699 699 this.put(index, new JSONArray(value)); 700 700 return this; … … 768 768 * number. 769 769 */ 770 public JSONArray put(int index, Map value) throws JSONException { 770 public JSONArray put(int index, Map<?, ?> value) throws JSONException { 771 771 this.put(index, new JSONObject(value)); 772 772 return this;
Note:
See TracChangeset
for help on using the changeset viewer.