mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
IDEA-295898 Good code red. 'Patterns in switch are not supported at language level '18'' GitOrigin-RevId: 5efad2270e30c237a9906c6f29950dc9980b7e1d
11 lines
178 B
Java
11 lines
178 B
Java
class X {
|
|
// IDEA-295898
|
|
void test(Object obj) {
|
|
switch (1) {
|
|
default:
|
|
if (obj instanceof String s) {
|
|
System.out.println(s);
|
|
}
|
|
}
|
|
}
|
|
} |