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:
Tagir Valeev
2018-09-26 17:01:22 +07:00
parent 22d6343b1e
commit 1b4e5c1e39
32 changed files with 454 additions and 284 deletions

View File

@@ -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 {
}