Package org.slf4j.helpers
Annotation Type CheckReturnValue
-
@Documented @Target(METHOD) @Retention(RUNTIME) public @interface CheckReturnValue
Used to annotate methods in the
LoggingEventBuilderinterface which return an instance of LoggingEventBuilder (usually asthis). Such methods should be followed by one of the terminatinglog()methods returningvoid.IntelliJ IDEA supports a check for annotations named as
CheckReturnValueregardless 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
- Since:
- 2.0.0-beta1
- Author:
- Ceki Gülcü