mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-11 11:36:59 +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
10 lines
193 B
Java
10 lines
193 B
Java
// "Unwrap 'switch' statement" "true"
|
|
class X {
|
|
String test(char c) {
|
|
if (c == 'a') {
|
|
System.out.println("foo");
|
|
} else {
|
|
}
|
|
System.out.println("oops");
|
|
}
|
|
} |