Package org.cthing.annotations
Annotation Interface PackageNonnullByDefault
@Documented
@Nonnull
@Retention(RUNTIME)
@Target(PACKAGE)
@TypeQualifierDefault({PARAMETER,TYPE_PARAMETER,FIELD,METHOD,RECORD_COMPONENT})
public @interface PackageNonnullByDefault
Declares that fields, method return types, method parameters, and type parameters within the annotated package
are not
null
by default. Items that can be null should be annotated with either
CheckForNull
or Nullable
.
This annotation depends on the Nonnull
annotation defined by the dormant
JSR 305 specification. A reference implementation of this
specification is provided by
com.google.code.findbugs:jsr305.