@Target({TYPE,PACKAGE}) @Nonnull @TypeQualifierDefault({METHOD,PARAMETER}) @Documented @Retention(RUNTIME) public @interface NonNullApi
Nonnull
unless specifically marked as Nullable
.
All types of an annotated package inherit the package rule.
Subpackages do not inherit nullability rules and must be annotated.