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
13 lines
226 B
Java
13 lines
226 B
Java
// "Replace 'switch' with 'if'" "true"
|
|
class X {
|
|
int m(String s, boolean r) {
|
|
switc<caret>h(s) {
|
|
case "x":
|
|
System.out.println("foo");
|
|
break;
|
|
default: {
|
|
//ignore
|
|
}
|
|
}
|
|
}
|
|
} |