mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-08 02:09:06 +00:00
Polish "Simplify code by using for-each loop"
Closes gh-15563
This commit is contained in:
+2
-2
@@ -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()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user