mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-20 11:36:16 +07:00
14 lines
355 B
Java
14 lines
355 B
Java
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
final class Alive {
|
|
@Nullable private transient Object elvis;
|
|
@NotNull
|
|
public Object smth() {
|
|
if (elvis != null) {
|
|
return elvis;
|
|
} else {
|
|
return <warning descr="'null' is returned by the method declared as @NotNull">null</warning>;
|
|
}
|
|
}
|
|
} |