diff options
author | Carsten Hammer | 2019-09-25 19:54:54 +0000 |
---|---|---|
committer | Carsten Hammer | 2019-10-15 19:45:39 +0000 |
commit | 69833cb735e950f05e57f3a76f795ad29e5787ae (patch) | |
tree | 466a1f994a6489d8e3af7fa4ed2d41ebfdd2e3b6 /bundles/org.eclipse.equinox.p2.director.app/src_ant/org/eclipse/equinox/p2/director/app/ant/DirectorTask.java | |
parent | b49385ec3fed567da7b579b1ffd2b6c577ba607e (diff) | |
download | rt.equinox.p2-69833cb735e950f05e57f3a76f795ad29e5787ae.tar.gz rt.equinox.p2-69833cb735e950f05e57f3a76f795ad29e5787ae.tar.xz rt.equinox.p2-69833cb735e950f05e57f3a76f795ad29e5787ae.zip |
Use jdk 5 for-each loop
Replace simple uses of Iterator with a corresponding for-loop. Also add
missing braces on loops as necessary.
Change-Id: I8d402051142310d9cea49fae095d178c36d157e9
Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.director.app/src_ant/org/eclipse/equinox/p2/director/app/ant/DirectorTask.java')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.director.app/src_ant/org/eclipse/equinox/p2/director/app/ant/DirectorTask.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.director.app/src_ant/org/eclipse/equinox/p2/director/app/ant/DirectorTask.java b/bundles/org.eclipse.equinox.p2.director.app/src_ant/org/eclipse/equinox/p2/director/app/ant/DirectorTask.java index 71d662416..4dd59101a 100644 --- a/bundles/org.eclipse.equinox.p2.director.app/src_ant/org/eclipse/equinox/p2/director/app/ant/DirectorTask.java +++ b/bundles/org.eclipse.equinox.p2.director.app/src_ant/org/eclipse/equinox/p2/director/app/ant/DirectorTask.java @@ -274,8 +274,8 @@ public class DirectorTask extends Task implements ILog { log(0, status); if (status.isMultiStatus()) { IStatus[] children = status.getChildren(); - for (int i = 0; i < children.length; i++) { - log(1, children[i]); + for (IStatus child : children) { + log(1, child); } } } |