mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-28 04:37:32 +07:00
IDEA-305716 GitOrigin-RevId: fb1dc16f1a24ccf8b6fd7a71a6e002b8067bd7d1
11 lines
244 B
Java
11 lines
244 B
Java
class C {
|
|
void foo(Object o) {
|
|
switch (o) {
|
|
case String s -> bar("A");
|
|
case null -> bar("B");
|
|
case Number n -> bar("A");
|
|
default -> bar("C");
|
|
}
|
|
}
|
|
void bar(String s){}
|
|
} |