mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-30 06:44:20 +07:00
- added condition for available feature GitOrigin-RevId: a8ae325cdd2843a932bf03fc535505a41865a9fb
17 lines
398 B
Java
17 lines
398 B
Java
// "Merge with 'case Integer _'" "true-preview"
|
|
class C {
|
|
void foo2(Object o) {
|
|
switch (o) {
|
|
case Integer _, StringBuffer _ when o.hashCode()==1:
|
|
case String _:
|
|
System.out.println("hello");
|
|
break;
|
|
case CharSequence _:
|
|
System.out.println("hello3");
|
|
break;
|
|
default:
|
|
System.out.println("hello2");
|
|
break;
|
|
}
|
|
}
|
|
} |