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
236 B
Java
12 lines
236 B
Java
// "Replace 'switch' with 'if'" "true"
|
|
class X {
|
|
void m(String s, boolean r) {
|
|
if (r)
|
|
swi<caret>tch (s) {
|
|
case "a":
|
|
System.out.println("a");
|
|
default:
|
|
System.out.println("d");
|
|
}
|
|
}
|
|
} |