mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-31 04:07:30 +07:00
IDEA-310260 GitOrigin-RevId: ce07977550e3a5c15d63f0a6eeed1d7341c74164
18 lines
387 B
Java
18 lines
387 B
Java
// "Merge with the default 'switch' branch" "GENERIC_ERROR_OR_WARNING"
|
|
class Test {
|
|
record R() {}
|
|
record S() {}
|
|
|
|
void foo(Object obj) {
|
|
switch (obj) {
|
|
case R():
|
|
case S():
|
|
case null:
|
|
System<caret>.out.println(42);
|
|
break;
|
|
default:
|
|
System.out.println(42);
|
|
}
|
|
}
|
|
}
|