mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 02:21:17 +07:00
9 lines
198 B
Java
9 lines
198 B
Java
// "Replace with a null check" "true-preview"
|
|
class Test {
|
|
void test(String s) {
|
|
Object object = s;
|
|
if(object instanceof <caret>String s1) {
|
|
System.out.println("always");
|
|
}
|
|
}
|
|
} |