Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/switchDefault/afterBreakOuterLoop.java
Tagir Valeev 1b4e5c1e39 Merge SwitchStatementWithSingleDefaultInspection into SwitchStatementWithTooFewBranches
Fixes IDEA-199499 Improve "Replace 'switch' with 'if'" action and make it a quick-fix for "Switch has too few branches"
Now default is not counted as branch in SwitchStatementWithTooFewBranches
2018-09-26 17:06:07 +07:00

14 lines
290 B
Java

// "Unwrap 'switch' statement" "true"
class X {
String test(char c) {
for(int i=0; i<10; i++) {
if (c == 'a') {
System.out.println("foo");
continue;
}
System.out.println("bar");
}
System.out.println("oops");
return "";
}
}