mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-17 21:15:58 +07:00
15 lines
297 B
Java
15 lines
297 B
Java
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
public class Npe {
|
|
@NotNull Object aField;
|
|
@Nullable Object nullable() {
|
|
return null;
|
|
}
|
|
|
|
void bar() {
|
|
Object o = nullable();
|
|
aField = o;
|
|
@NotNull Object aLocalVariable = o;
|
|
}
|
|
} |