blob: 77b1222d108eb497970c1d0a0bd34bac0dd22f91 [file] [log] [blame]
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public class Npe {
Object foo(@NotNull Object o) {
return o;
}
@Nullable Object nullable() {
return null;
}
void bar() {
Object o = nullable();
if (o != null) {
foo(o); // OK, o can't be null.
}
}
}