Polish "Simplify code by using for-each loop"

Closes gh-15563
pull/15569/head
Stephane Nicoll 6 years ago
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…
Cancel
Save