Annotation Type CanIgnoreReturnValue
-
@Documented @Target({METHOD,CONSTRUCTOR,TYPE}) @Retention(CLASS) public @interface CanIgnoreReturnValue
Indicates that the return value of the annotated API(s) can be safely ignored.This is the opposite of
CheckReturnValue
. It can be used inside classes or packages annotated with@CheckReturnValue
to exempt specific APIs from the default.