Package org.gradle.api
Annotation Type NonNullApi
-
@Target({TYPE,PACKAGE}) @NotNull @Nonnull @TypeQualifierDefault({METHOD,PARAMETER}) @Documented @Retention(RUNTIME) public @interface NonNullApiMarks a type or a whole package as providing a non-null API by default. All parameter and return types are assumed to beNonnullunless specifically marked asNullable. All types of an annotated package inherit the package rule. Subpackages do not inherit nullability rules and must be annotated.- Since:
- 4.2