mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
IDEA-15184 (Inspection "@NotNull/@Nullable" problems misses @NotNull getter for @Nullable field)
IDEA-60156 (Inspection: Detect assignment to @NotNull field from unannotated parameter)
This commit is contained in:
+20
@@ -18,4 +18,24 @@ class B {
|
||||
public boolean getBug() {
|
||||
return Boolean.valueOf(bug);
|
||||
}
|
||||
}
|
||||
class C {
|
||||
@NotNull C c;
|
||||
|
||||
C(C c) {
|
||||
this.c = c;
|
||||
}
|
||||
|
||||
C(@Nullable C c, int i) {
|
||||
this.c = c;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public C getC() {
|
||||
return c;
|
||||
}
|
||||
|
||||
public void setC(@Nullable C c) {
|
||||
this.c = c;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user