Top Description Methods
org.springframework.lang

public @Interface NonNullFields

extends Annotation
Annotations
@Target:PACKAGE
@Retention:RUNTIME
@Documented
@Nonnull
@TypeQualifierDefault:FIELD
Imports
java.lang.annotation.Documented, .ElementType, .Retention, .RetentionPolicy, .Target, javax.annotation.Nonnull, javax.annotation.meta.TypeQualifierDefault

A common Spring annotation to declare that fields are to be considered as non-nullable by default for a given package.

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 Spring API.

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

Author
Sebastien Deleuze
Since
5.0
See Also
NonNullApi, Nullable, NonNull

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString