mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-25 16:01:29 +07:00
Merge SwitchStatementWithSingleDefaultInspection into SwitchStatementWithTooFewBranches
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
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// "Unwrap 'switch' statement" "true"
|
||||
class X {
|
||||
String test(char c) {
|
||||
if(c == 'a') {
|
||||
if (c == 'a') {
|
||||
System.out.println("foo");
|
||||
} else {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user