mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
9 lines
202 B
Java
9 lines
202 B
Java
class C {
|
|
String test(int i) {
|
|
return switch (i) {
|
|
case 0 -> null;
|
|
case 1 -> <weak_warning descr="Duplicate branch in 'switch'">(null);</weak_warning>
|
|
default -> "";
|
|
};
|
|
}
|
|
} |