mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 11:44:39 +07:00
Regression introduced in IDEA-361818 GitOrigin-RevId: faed510b342995f19cbee5d56138132c7c209662
22 lines
485 B
Java
22 lines
485 B
Java
import java.util.function.BooleanSupplier;
|
|
|
|
class FieldWriteInLambda {
|
|
private String myField;
|
|
|
|
FieldWriteInLambda(boolean b) {
|
|
BooleanSupplier r = () -> {
|
|
myField = Math.random() > 0.5 ? "foo" : <warning descr="Assigning 'null' value to non-annotated field">null</warning>;
|
|
return myField != null;
|
|
};
|
|
if (b) {
|
|
r.getAsBoolean();
|
|
if (myField == null) {
|
|
|
|
}
|
|
} else if (r.getAsBoolean()) {
|
|
if (myField == null) {
|
|
|
|
}
|
|
}
|
|
}
|
|
} |