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) { public JSONArray(Collection copyFrom) {
this(); this();
if (copyFrom != null) { if (copyFrom != null) {
for (Object value : copyFrom) { for (Iterator it = copyFrom.iterator(); it.hasNext();) {
put(JSONObject.wrap(value)); put(JSONObject.wrap(it.next()));
} }
} }
} }

Loading…
Cancel
Save