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 are Nonnull unless explicitly annotated with Nullable. This annotation is a generalization of ParametersAreNonnullByDefault. All servicetalk packages should carry this annotation.