mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-28 23:50:57 +07:00
Fixes IDEA-141261 'Replace 'switch' with 'if'' intention produces incorrect code if some 'case' clause contains 'break' statement inside 'if'
15 lines
290 B
Java
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");
|
|
}
|
|
} |