Commit 1223355f authored by Stephane Nicoll's avatar Stephane Nicoll

Polish "Simplify code by using for-each loop"

Closes gh-15563
parent dfb3cd51
......@@ -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()));
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment