summaryrefslogtreecommitdiffstats
path: root/ri/src/main/java/javax/annotation/CheckReturnValue.java
blob: 370fa3813f544888455db47f5d7a2930d1cfc22b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package javax.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.annotation.meta.When;

@Documented
@Target( { ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.TYPE,
        ElementType.PACKAGE })
@Retention(RetentionPolicy.RUNTIME)
public @interface CheckReturnValue {
    When when() default When.ALWAYS;
}