Annotation Interface CheckReturnValue


@Retention(RUNTIME) @Documented @Target(METHOD) public @interface CheckReturnValue
Marker annotation for methods whose return values shall not be ignored under common API usage patterns.

Static analysis tools can leverage this annotation under JSR 305 semantics.

IntelliJ IDEA is known to consider CheckReturnValue annotations, no matter what the package.