mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
23 lines
419 B
Java
23 lines
419 B
Java
class X {
|
|
|
|
private Object object = null;
|
|
|
|
void foo() {
|
|
Object tmp = getObject();
|
|
if (tmp == null) {
|
|
fill(); // object is initialized here
|
|
tmp = getObject(); // no longer null
|
|
if (tmp == null) { // false "condition 'tmp == null' is always 'true'" report
|
|
System.out.println(tmp);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public Object getObject() {
|
|
return object;
|
|
}
|
|
|
|
public void fill() {
|
|
}
|
|
} |