mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
IDEA-147534 Inspection "@NotNull/@Nullable problems" - "Require @NotNull fileds to be initialized explicitly", does not trigger when using @NonnullByDefault
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
import javax.annotation.*;
|
||||
|
||||
@NonnullByDefault
|
||||
class Test {
|
||||
Object <warning descr="@NonnullByDefault fields must be initialized">member</warning>;
|
||||
|
||||
private void accessMember() {
|
||||
member = new Object();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Nonnull
|
||||
@javax.annotation.meta.TypeQualifierDefault(java.lang.annotation.ElementType.FIELD)
|
||||
@interface NonnullByDefault {}
|
||||
Reference in New Issue
Block a user