mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-29 01:53:51 +07:00
- Leftovers after IDEA-326939 - merge branches and rules if they have the same guard - not move branches and rules it they are not close (not to break dominance) - allow to copy in guarded case - not use firstLabel instead of full label set GitOrigin-RevId: 289882c1be7275d33e97037217de8095f59346aa
18 lines
356 B
Java
18 lines
356 B
Java
class C {
|
|
void foo(Object o) {
|
|
switch (o) {
|
|
case Integer _:
|
|
System.out.println("hello");
|
|
break;
|
|
case String _:
|
|
System.out.println("hello3");
|
|
break;
|
|
case CharSequence _:
|
|
System.out.println("hello");
|
|
break;
|
|
default:
|
|
System.out.println("hello2");
|
|
break;
|
|
}
|
|
}
|
|
} |