mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
IDEA-133129 Expression is incorrectly detected as being nullable
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
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>;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user