Polish "Simplify code by using for-each loop"
Closes gh-15563
This commit is contained in:
parent
dfb3cd51bc
commit
1223355fe6
|
@ -65,8 +65,8 @@ public class JSONArray {
|
|||
public JSONArray(Collection copyFrom) {
|
||||
this();
|
||||
if (copyFrom != null) {
|
||||
for (Object value : copyFrom) {
|
||||
put(JSONObject.wrap(value));
|
||||
for (Iterator it = copyFrom.iterator(); it.hasNext();) {
|
||||
put(JSONObject.wrap(it.next()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue