Annotation Interface RequireNonnull


@Documented @Retention(RUNTIME) public @interface RequireNonnull
Designates that the method throws RequireNonNullException when the annotated arguments is null.

This is almost equal to jakarta.annotation.Nonnull, but @Nonnull is analyzed by the IDE and IDE warns the nullable parameter. If you want to show that the method throws RequireNonNullException when the annotated arguments is null, but NO IDE warning needed, use RequireNonnull.

This annnotation does nothing. Just for the explanation of the implementation of the method to developers.

See Also: