SwitchStatementWithTooFewBranches: warn on switch expression; provide fix in simple case (single default)

This commit is contained in:
Tagir Valeev
2018-12-07 12:46:07 +07:00
parent b81af4a9d6
commit 53b426dfae
22 changed files with 104 additions and 36 deletions

View File

@@ -0,0 +1,6 @@
// "Unwrap 'switch'" "true"
class X {
String test(int i) {
return "foo";
}
}