mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-31 04:07:30 +07:00
- preserve guards for patterns - preserve comma-style for unnamed patterns GitOrigin-RevId: c306280bded29ac3b6acb88b0ef6071bf50fefcb
10 lines
276 B
Java
10 lines
276 B
Java
// "Replace with old style 'switch' statement" "true-preview"
|
|
|
|
class UnnamedGuardedExpressions {
|
|
void foo3(Object o) {
|
|
switc<caret>h (o) {
|
|
case Integer _, String _ when o.hashCode() == 1 -> System.out.println(1);
|
|
default -> System.out.println(2);
|
|
}
|
|
}
|
|
} |