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