Polish "Simplify code by using for-each loop"

Closes gh-15563
This commit is contained in:
Stephane Nicoll 2018-12-25 09:59:41 +01:00
parent dfb3cd51bc
commit 1223355fe6
1 changed files with 2 additions and 2 deletions

View File

@ -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()));
}
}
}