blob: e1c9803abb11f14351c628a1797b05b214264b97 [file] [log] [blame]
package org.slf4j.helpers;
import org.slf4j.Marker;
import java.lang.annotation.*;
/**
* <p>Used to annotate methods in the {@link org.slf4j.spi.LoggingEventBuilder} interface
* which return an instance of LoggingEventBuilder (usually as <code>this</code>). Such
* methods should be followed by one of the terminating <code>log()</code> methods returning
* <code>void</code>.</p>
* <p></p>
* <p>IntelliJ IDEA supports a check for annotations named as <code>CheckReturnValue</code>
* regardless of the containing package. For more information on this feature in IntelliJ IDEA,
* select File &#8594; Setting &#8594; Editor &#8594; Inspections and then Java &#8594; Probable Bugs &#8594;
* Result of method call ignored. </p>
* <p></p>
*
* <p>As for Eclipse, this feature has been requested in
* <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=572496">bug 572496</a></p>
*
* @author Ceki G&uuml;lc&uuml;
* @since 2.0.0-beta1
*/
@Documented
@Target( { ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
public @interface CheckReturnValue {
}