Package io.servicetalk.annotations
Annotation Type ElementsAreNonnullByDefault
-
@Documented @Nonnull @TypeQualifierDefault({FIELD,PARAMETER,METHOD}) @Retention(RUNTIME) @Target(PACKAGE) public @interface ElementsAreNonnullByDefault
Indicates that fields, method parameters, method return types, and type parameters within a package areNonnull
unless explicitly annotated withNullable
. This annotation is a generalization ofParametersAreNonnullByDefault
. All servicetalk packages should carry this annotation.