@Target(value={TYPE,METHOD,CONSTRUCTOR,PACKAGE}) @Retention(value=CLASS) public @interface NotNullByDefault
true) indicates that types in method signatures that lack a null
annotation are regarded as non-null.
It is generally good practice to add @NotNullByDefault to all your package declarations (i.e.
'package-into.java' files), because in well-designed code (especially API methods), @NonNull is
significantly more frequent than @Nullable.| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
value |
Copyright © 2018 Arno Unkrig. All rights reserved.