mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +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
11 lines
214 B
Java
11 lines
214 B
Java
// "Replace 'switch' with 'if'" "true"
|
|
class X {
|
|
void m(String s, boolean r) {
|
|
if (r) {
|
|
if ("a".equals(s)) {
|
|
System.out.println("a");
|
|
}
|
|
System.out.println("d");
|
|
}
|
|
}
|
|
} |