Annotation Interface NullFields


@Target({PACKAGE,TYPE}) @Retention(RUNTIME) @Documented @Nullable @TypeQualifierDefault(FIELD) public @interface NullFields
A common annotation to declare that fields are to be considered as non-nullable by default for a given package.

Leverages JSpecify meta-annotations to indicate nullability in Java to common tools with JSpecify support and used by Kotlin to infer nullability of the API.

Should be used at package level in association with Nullable annotations at field level.

See Also: