mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-06 17:56:55 +07:00
GitOrigin-RevId: fd52ace3d7a32ecd02c2c5ab90e077967604c15e
20 lines
470 B
Java
20 lines
470 B
Java
/*
|
|
Value is always false (t == null; line#16)
|
|
't' was assigned (=; line#15)
|
|
The 'instanceof' check implies non-nullity (t.getNext() instanceof CharSequence; line#14)
|
|
*/
|
|
|
|
import org.jetbrains.annotations.Contract;
|
|
|
|
class Test {
|
|
@Contract(pure=true)
|
|
native Test getNext();
|
|
|
|
void find(Test t) {
|
|
while (t.getNext() instanceof CharSequence) {
|
|
t = t.getNext();
|
|
if (<selection>t == null</selection>) return;
|
|
}
|
|
System.out.println(t);
|
|
}
|
|
} |