NonNullApi

annotation class NonNullApi(source)

Deprecated

Deprecated in Gradle 9 for removal in Gradle 10. Prefer JSpecify annotations such as org.jspecify.annotations.NullMarked and org.jspecify.annotations.Nullable. Note that you can also still use JSR305 annotations such as javax.annotation.Nonnull and javax.annotation.Nullable.

Marks a type or a whole package as providing a non-null API by default. All parameter and return types are assumed to be javax.annotation.Nonnull unless specifically marked as javax.annotation.Nullable. All types of an annotated package inherit the package rule. Subpackages do not inherit nullability rules and must be annotated.

Since

4.2

Functions

Link copied to clipboard
abstract fun annotationType(): Class<out Annotation>
Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
abstract fun toString(): String