Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Hammer2019-06-16 12:29:17 -0400
committerKarsten Thoms2019-10-14 09:00:37 -0400
commita8dfbc50ee3ab76bbdbb9b45e5182d0b08b7ec9e (patch)
tree2ea6acb92a8b921f20a92b2595332af7d71e4af6 /org.eclipse.debug.examples.mixedmode/src/org/eclipse/debug
parent154876b4fe661e138d81eebed0fe2e41da7da86a (diff)
downloadeclipse.platform.debug-a8dfbc50ee3ab76bbdbb9b45e5182d0b08b7ec9e.tar.gz
eclipse.platform.debug-a8dfbc50ee3ab76bbdbb9b45e5182d0b08b7ec9e.tar.xz
eclipse.platform.debug-a8dfbc50ee3ab76bbdbb9b45e5182d0b08b7ec9e.zip
Use jdk 5 for-each loop (Part 1)
Replace simple uses of Iterator with a corresponding for-each loop. Also add missing braces on loops as necessary. Change-Id: I6c75e02ff88e29f6007356616dc098f6a1164a64 Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
Diffstat (limited to 'org.eclipse.debug.examples.mixedmode/src/org/eclipse/debug')
-rw-r--r--org.eclipse.debug.examples.mixedmode/src/org/eclipse/debug/internal/examples/mixedmode/ClearPreferredDelegatesHandler.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.debug.examples.mixedmode/src/org/eclipse/debug/internal/examples/mixedmode/ClearPreferredDelegatesHandler.java b/org.eclipse.debug.examples.mixedmode/src/org/eclipse/debug/internal/examples/mixedmode/ClearPreferredDelegatesHandler.java
index 5d6ac3b98..a41543482 100644
--- a/org.eclipse.debug.examples.mixedmode/src/org/eclipse/debug/internal/examples/mixedmode/ClearPreferredDelegatesHandler.java
+++ b/org.eclipse.debug.examples.mixedmode/src/org/eclipse/debug/internal/examples/mixedmode/ClearPreferredDelegatesHandler.java
@@ -35,12 +35,12 @@ public class ClearPreferredDelegatesHandler extends AbstractHandler {
ILaunchConfigurationType[] types = lm.getLaunchConfigurationTypes();
Set<Set<String>> modes = null;
Set<String> mode = null;
- for (int i = 0; i < types.length; i++) {
- modes = types[i].getSupportedModeCombinations();
+ for (ILaunchConfigurationType type : types) {
+ modes = type.getSupportedModeCombinations();
for (Iterator<Set<String>> iter = modes.iterator(); iter.hasNext();) {
mode = iter.next();
try {
- types[i].setPreferredDelegate(mode, null);
+ type.setPreferredDelegate(mode, null);
} catch (CoreException ce) {
// /do nothing
}

Back to the top