Top Description Methods
org.slf4j.helpers

public @Interface CheckReturnValue

extends Annotation
Annotations
@Documented
@Target:METHOD
@Retention:RUNTIME
Imports
org.slf4j.Marker, java.lang.annotation.*

Used to annotate methods in the org.slf4j.spi.LoggingEventBuilder interface which return an instance of LoggingEventBuilder (usually as this). Such methods should be followed by one of the terminating log() methods returning void.

IntelliJ IDEA supports a check for annotations named as CheckReturnValue regardless of the containing package. For more information on this feature in IntelliJ IDEA, select File → Setting → Editor → Inspections and then Java → Probable Bugs → Result of method call ignored.

As for Eclipse, this feature has been requested in bug 572496

Author
Ceki Gülcü
Since
2.0.0-beta1

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString