mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-28 23:39:57 +07:00
GitOrigin-RevId: e21dde6aa890c64b4463362db36abe8656bc700d
10 lines
399 B
Java
10 lines
399 B
Java
class C {
|
|
void foo(String s) {
|
|
switch (s) {
|
|
case "blah blah blah" -> <weak_warning descr="Branch in 'switch' is a duplicate of the default branch">bar("A");</weak_warning>
|
|
case null -> <weak_warning descr="Branch in 'switch' is a duplicate of the default branch">bar("A");</weak_warning>
|
|
default -> bar("A");
|
|
}
|
|
}
|
|
void bar(String s){}
|
|
} |