mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
in "Duplicate branches in 'switch'" inspection fix GitOrigin-RevId: 7b22a3409f5d9237f432ab3dd35f27cacfbd7737
24 lines
553 B
Java
24 lines
553 B
Java
// "Merge with 'case 1'" "GENERIC_ERROR_OR_WARNING"
|
|
class C {
|
|
void foo(int n, boolean b) {
|
|
switch (n) {
|
|
case 1, 3:
|
|
if(b) {
|
|
bar("A");
|
|
} else {
|
|
bar("z");
|
|
}
|
|
bar("o");
|
|
break;
|
|
case 2:
|
|
if(b) {
|
|
bar("B");
|
|
} else {
|
|
bar("z");
|
|
}
|
|
bar("o");
|
|
break;
|
|
}
|
|
}
|
|
void bar(String s){}
|
|
} |