mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 23:20:57 +07:00
9 lines
199 B
Java
9 lines
199 B
Java
// "Remove 'if' statement" "true-preview"
|
|
class X {
|
|
void test() {
|
|
Object obj = "Hello from pattern matching";
|
|
if (obj instanceof<caret> Integer i) {
|
|
System.out.println(i);
|
|
}
|
|
}
|
|
} |