mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-02 14:38:30 +07:00
13 lines
400 B
Java
13 lines
400 B
Java
class C {
|
|
void test(int n) {
|
|
String s;
|
|
switch (n) {
|
|
case 0: s = a(); break;
|
|
case 1: <weak_warning descr="Duplicate branch in 'switch'">s = a();</weak_warning> break;
|
|
case 2: <weak_warning descr="Branch in 'switch' is a duplicate of the default branch">s = b();</weak_warning> break;
|
|
default: s = b();
|
|
}
|
|
}
|
|
String a() {return "a";}
|
|
String b() {return "b";}
|
|
} |