Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Hammer2019-06-16 16:31:37 +0000
committerKarsten Thoms2019-09-16 14:19:42 +0000
commit561c2e3370a519dfffc74b42d0353985e5022914 (patch)
treea5b85409d095ea89f5d424b9d99fbcd8b1a2647f /org.eclipse.debug.examples.ui
parent3142fba61e8326bb274671c5cc9f5ed29cb330da (diff)
downloadeclipse.platform.debug-561c2e3370a519dfffc74b42d0353985e5022914.tar.gz
eclipse.platform.debug-561c2e3370a519dfffc74b42d0353985e5022914.tar.xz
eclipse.platform.debug-561c2e3370a519dfffc74b42d0353985e5022914.zip
Use jdk 5 for-each loop (Part 3)
Replace simple uses of Iterator with a corresponding for-each loop. Also add missing braces on loops as necessary. Change-Id: I143bc5e03ef6f52a8b80897d61d20b3619c9dad8 Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
Diffstat (limited to 'org.eclipse.debug.examples.ui')
-rw-r--r--org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/MidiLaunchShortcut.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/MidiLaunchShortcut.java b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/MidiLaunchShortcut.java
index 521edaf02..fde0493d5 100644
--- a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/MidiLaunchShortcut.java
+++ b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/MidiLaunchShortcut.java
@@ -71,8 +71,7 @@ public class MidiLaunchShortcut implements ILaunchShortcut {
List<ILaunchConfiguration> candiates = new ArrayList<>();
try {
ILaunchConfiguration[] configurations = getLaunchManager().getLaunchConfigurations(getLaunchType());
- for (int i = 0; i < configurations.length; i++) {
- ILaunchConfiguration configuration = configurations[i];
+ for (ILaunchConfiguration configuration : configurations) {
IResource[] resources = configuration.getMappedResources();
if (resources != null && resources.length == 1 &&
resources[0].equals(file)) {

Back to the top