Package org.gradle.api
Annotation Type NonNullApi
@Target({TYPE,PACKAGE})
@NotNull
@Nonnull
@TypeQualifierDefault({METHOD,PARAMETER})
@Documented
@Retention(RUNTIME)
@Deprecated
public @interface NonNullApi
Deprecated.
Marks a type or a whole package as providing a non-null API by default.
All parameter and return types are assumed to be
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.- Since:
- 4.2
NullMarkedandNullable. Note that you can also still use JSR305 annotations such asNonnullandNullable.