mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-30 13:22:14 +07:00
7a1862550e
GitOrigin-RevId: 393c52e12ef82e5ced624edd59416ea6704d8e6b
8 lines
215 B
Java
8 lines
215 B
Java
// "Remove 'if' statement extracting side effects" "true"
|
|
class X {
|
|
void test() {
|
|
Object obj = "Hello from pattern matching";
|
|
if (!(obj instanceof <caret>String s)) return;
|
|
System.out.println(s);
|
|
}
|
|
} |