mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 18:58:31 +07:00
Fixes IDEA-141261 'Replace 'switch' with 'if'' intention produces incorrect code if some 'case' clause contains 'break' statement inside 'if'
14 lines
300 B
Java
14 lines
300 B
Java
// "Replace 'switch' with 'if'" "true"
|
|
class X {
|
|
void m(String s, boolean r) {
|
|
if ("a".equals(s)) {
|
|
System.out.println("a");
|
|
if (r) {
|
|
} else {
|
|
throw new RuntimeException();
|
|
}
|
|
} else {
|
|
System.out.println("d");
|
|
}
|
|
}
|
|
} |