DeleteSwitchLabelFix: check again whether the whole branch should be removed when fix is actually applied

Fixes IDEA-200021 Red code after applying 'Fix all 'Constant conditions and exception' problems in the file' with multiple case labels
This commit is contained in:
Tagir Valeev
2018-10-08 13:22:38 +07:00
parent c09250da45
commit 1554b0c513
3 changed files with 28 additions and 6 deletions

View File

@@ -0,0 +1,9 @@
// "Fix all 'Constant conditions & exceptions' problems in file" "true"
class Main {
void t() {
int i = 5;
switch(i) {
// Apply 'Fix all problems in the file'
}
}
}