Files
2022-12-14 00:11:11 +00:00

13 lines
329 B
Java

// "Delete redundant 'switch' branch" "GENERIC_ERROR_OR_WARNING"
class C {
void foo(int n) {
switch (n) {
//comment1
case 1 -> bar("A");<caret>//comment2
case 2 -> bar("B");
//comment1
default ->bar("A");//comment2
}
}
void bar(String s){}
}