Files
Tagir Valeev f859a4c439 Support BreakConverter in ConvertSwitchToIfIntention
Fixes IDEA-141261 'Replace 'switch' with 'if'' intention produces incorrect code if some 'case' clause contains 'break' statement inside 'if'
2018-09-26 11:58:20 +07:00

15 lines
290 B
Java

// "Replace 'switch' with 'if'" "false"
class X {
void m(String s, boolean r) {
swi<caret>tch (s) {
case "a":
System.out.println("a");
if (r) {
break;
}
default:
System.out.println("d");
}
System.out.println("oops");
}
}