-
-
Notifications
You must be signed in to change notification settings - Fork 993
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add CheckReturnValue annotation in org.slf4j.helpers
Signed-off-by: Ceki Gulcu <[email protected]>
- Loading branch information
Showing
3 changed files
with
24 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
slf4j-api/src/main/java/org/slf4j/helpers/CheckReturnValue.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
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>Some IDEs such as IntelliJ IDEA support this annotation at compile time.</p> | ||
* | ||
* @author Ceki Gülcü | ||
* @since 2.0.0-beta1 | ||
*/ | ||
@Documented | ||
@Target( { ElementType.METHOD }) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface CheckReturnValue { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters