Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Rennie2008-09-12 14:59:19 +0000
committerMichael Rennie2008-09-12 14:59:19 +0000
commitc16f2db48e3467fb4300428b34a99def56eaca2e (patch)
tree152c5379a6f80d06d650e2c0ee217681d2b2cabc /org.eclipse.debug.examples.core/src_ant/org
parent442c0b9d1bfdadb81e0a88d85c6dfe438795c919 (diff)
downloadeclipse.platform.debug-c16f2db48e3467fb4300428b34a99def56eaca2e.tar.gz
eclipse.platform.debug-c16f2db48e3467fb4300428b34a99def56eaca2e.tar.xz
eclipse.platform.debug-c16f2db48e3467fb4300428b34a99def56eaca2e.zip
fixed fall-through switch cases
Diffstat (limited to 'org.eclipse.debug.examples.core/src_ant/org')
-rw-r--r--org.eclipse.debug.examples.core/src_ant/org/eclipse/debug/examples/ant/tasks/PreProcessor.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.debug.examples.core/src_ant/org/eclipse/debug/examples/ant/tasks/PreProcessor.java b/org.eclipse.debug.examples.core/src_ant/org/eclipse/debug/examples/ant/tasks/PreProcessor.java
index 30495d3f4..59baccb85 100644
--- a/org.eclipse.debug.examples.core/src_ant/org/eclipse/debug/examples/ant/tasks/PreProcessor.java
+++ b/org.eclipse.debug.examples.core/src_ant/org/eclipse/debug/examples/ant/tasks/PreProcessor.java
@@ -231,6 +231,7 @@ public class PreProcessor extends Task {
} else if (ifdef) {
throw new BuildException("illegal nested #ifdef");
}
+ break;
case STATE_FALSE_CONDITION:
if (elseif) {
String condition = line.substring(ELSE_IF_MATCHER.start(), ELSE_IF_MATCHER.end());
@@ -250,6 +251,7 @@ public class PreProcessor extends Task {
} else if (ifdef) {
throw new BuildException("illegal nested #ifdef");
}
+ break;
case STATE_POST_TRUE_CONDITION:
if (endif) {
state = STATE_OUTSIDE_CONDITION;
@@ -257,6 +259,7 @@ public class PreProcessor extends Task {
} else if (ifdef) {
throw new BuildException("illegal nested #ifdef");
}
+ break;
}
if (!commandLine) {
if (state == STATE_OUTSIDE_CONDITION || state == STATE_TRUE_CONDITION) {

Back to the top