mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-08 10:58:45 +07:00
14 lines
317 B
Java
14 lines
317 B
Java
// "Delete redundant 'switch' branch" "GENERIC_ERROR_OR_WARNING"
|
|
class C {
|
|
void test(int n) {
|
|
String s = switch (n) {
|
|
default:
|
|
case 1:
|
|
break "a";
|
|
case 2:
|
|
break "b";
|
|
case 3:
|
|
<caret>break "a";
|
|
};
|
|
}
|
|
} |