mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
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:
+9
@@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// "Fix all 'Constant conditions & exceptions' problems in file" "true"
|
||||
class Main {
|
||||
void t() {
|
||||
int i = 5;
|
||||
switch(i) {
|
||||
c<caret>ase 1: case 3: // Apply 'Fix all problems in the file'
|
||||
System.out.println("odd");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user