mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 18:58:31 +07:00
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
12 lines
240 B
Java
12 lines
240 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) {
|
|
return;
|
|
}
|
|
}
|
|
System.out.println("d");
|
|
}
|
|
} |