mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
closes #2244 GitOrigin-RevId: d871a8dd8a645f30fa02ba0ec6baffd5d9c6b926
11 lines
257 B
Java
11 lines
257 B
Java
// "Delete redundant 'switch' branch" "GENERIC_ERROR_OR_WARNING"
|
|
class C {
|
|
void foo(int n) {
|
|
switch (n) {
|
|
case 2 -> bar("B");
|
|
//comment1
|
|
default ->bar("A");//comment2
|
|
}
|
|
}
|
|
void bar(String s){}
|
|
} |