Annotation Interface CheckReturnValue


Used to annotate methods in the 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

Since:
2.0.0-beta1
Author:
Ceki Gülcü