mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 02:21:17 +07:00
Fixes IDEA-265543 Pattern type is the same as expression type error missing fix GitOrigin-RevId: a971caf5480cd29e50cfc271ae76891fbc750d6b
9 lines
198 B
Java
9 lines
198 B
Java
// "Replace with a null check" "false"
|
|
class Test {
|
|
void test(String s) {
|
|
Object object = s;
|
|
if(object instanceof <caret>String s1) {
|
|
System.out.println("always: " + s1);
|
|
}
|
|
}
|
|
} |