mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-08 12:48:12 +07:00
12 lines
296 B
Java
12 lines
296 B
Java
// "Delete redundant 'switch' branch" "GENERIC_ERROR_OR_WARNING"
|
|
class C {
|
|
void foo(int n) {
|
|
switch (n) {
|
|
case 1 -> bar("A");<caret>
|
|
case 2 -> bar("B");
|
|
case 3 -> bar("A");
|
|
default -> bar("A");
|
|
}
|
|
}
|
|
void bar(String s){}
|
|
} |