@Target(value={PACKAGE,TYPE}) @Retention(value=RUNTIME) @Documented @Nonnull @TypeQualifierDefault(value={METHOD,PARAMETER}) public @interface NonNullApi
Leverages JSR-305 meta-annotations to indicate nullability in Java to common tools with JSR-305 support and used by Kotlin to infer nullability of the API.
Should be used at package level in association with Nullable
annotations at parameter and return value level.
NonNullFields
,
Nullable
,
NonNull
Copyright © 2019. All rights reserved.