mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
11 lines
325 B
Java
11 lines
325 B
Java
// "Remove 'if' statement extracting side effects" "true-preview"
|
|
class X {
|
|
void test() {
|
|
Object obj = "Hello from pattern matching";
|
|
if (!(getString() instanceof <caret>String s)) return;
|
|
System.out.println(s);
|
|
System.out.println(s);
|
|
}
|
|
|
|
native @org.jetbrains.annotations.NotNull String getString();
|
|
} |