Files
openide/java/java-tests/testData/inspection/dataFlow/fixture/BoxingImpliesNotNull.java
T

14 lines
225 B
Java

import org.jetbrains.annotations.Nullable;
class Baz {
Integer bar() { return 2; }
void g() {
@Nullable Integer foo = bar();
if (foo == null) {
foo = 0;
}
System.out.println(foo.intValue());
}
}