| 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 → Setting → Editor → Inspections and then Java → Probable Bugs → |
| * 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ülcü |
| * @since 2.0.0-beta1 |
| */ |
| @Documented |
| @Target( { ElementType.METHOD }) |
| @Retention(RetentionPolicy.RUNTIME) |
| public @interface CheckReturnValue { |
| } |