Annotation Interface Nullable
@Documented
@TypeQualifierNickname
@Nonnull(when=MAYBE)
@Retention(RUNTIME)
@Target({METHOD,PARAMETER,FIELD})
public @interface Nullable
A common annotation to declare that annotated elements can be
null under
some circumstance.
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. Methods override should
repeat parent @Nullable annotations unless they behave differently.
- 从以下版本开始:
- 4.0
- 作者:
- TODAY 2021/8/15 17:19
- 另请参阅: