IDEA-147534 Inspection "@NotNull/@Nullable problems" - "Require @NotNull fileds to be initialized explicitly", does not trigger when using @NonnullByDefault

This commit is contained in:
peter
2015-11-06 16:48:33 +01:00
parent cbbe838d32
commit 2b9e895827
3 changed files with 32 additions and 15 deletions
@@ -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 {}