mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-28 04:37:32 +07:00
12 lines
294 B
Java
12 lines
294 B
Java
// "Delete redundant 'switch' branch" "GENERIC_ERROR_OR_WARNING"
|
|
class C {
|
|
void foo(int n) {
|
|
String s = switch (n) {
|
|
case 2 -> bar("B");
|
|
default ->
|
|
/*comment 1*/
|
|
bar("A");
|
|
};
|
|
}
|
|
String bar(String s){return s;}
|
|
} |