mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
1. Do not merge pattern with non-pattern branch 2. Colon labels with guards should not be merged into a single label Leftovers after IDEA-326939 GitOrigin-RevId: 9fc54e643eda666771af2fc017dbef7d925dd76b
14 lines
363 B
Java
14 lines
363 B
Java
// "Merge with 'case Integer _'" "true"
|
|
class X {
|
|
void foo(Object o) {
|
|
switch (o) {
|
|
case Integer _, StringBuffer _:
|
|
case String _ when o.hashCode()==1:
|
|
System.out.println("hello");
|
|
break;
|
|
default:
|
|
System.out.println("hello2");
|
|
break;
|
|
}
|
|
}
|
|
} |