mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-29 11:35:12 +07:00
IDEA-310260 GitOrigin-RevId: ce07977550e3a5c15d63f0a6eeed1d7341c74164
19 lines
290 B
Java
19 lines
290 B
Java
class C {
|
|
void foo(Object o) {
|
|
switch (o) {
|
|
case null:
|
|
bar("A");
|
|
break;
|
|
case String s:
|
|
bar("B");
|
|
break;
|
|
case Number n:
|
|
bar("A");
|
|
break;
|
|
default:
|
|
bar("C");
|
|
break;
|
|
}
|
|
}
|
|
void bar(String s){}
|
|
} |