Annotation Interface NonNull


@Nonnull @Documented @TypeQualifierNickname @Retention(RUNTIME) @Target({METHOD,PARAMETER,FIELD}) public @interface NonNull
A common annotation to declare that annotated elements cannot be null.

Leverages JSR-305 meta-annotations to indicate nullability in Java to common tools with JSR-305 support.

Should be used at parameter, return value, and field level. Method overrides should repeat parent @NonNull annotations unless they behave differently.

从以下版本开始:
4.0
作者:
TODAY 2021/8/15 17:17
另请参阅: