mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 15:41:26 +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
17 lines
348 B
Java
17 lines
348 B
Java
class C {
|
|
enum T {A, B,}
|
|
|
|
void foo(Object o) {
|
|
switch (o) {
|
|
case Integer _:
|
|
case T.A:
|
|
System.out.println("1");
|
|
break;
|
|
case String _:
|
|
<weak_warning descr="Duplicate branch in 'switch'">System.out.println("1");</weak_warning>
|
|
break;
|
|
default:
|
|
System.out.println("3");
|
|
}
|
|
}
|
|
} |