diff options
author | Jesse Wilson <jessewilson@google.com> | 2009-12-10 17:45:56 -0800 |
---|---|---|
committer | Jesse Wilson <jessewilson@google.com> | 2009-12-10 18:00:27 -0800 |
commit | 66e84b9ff30de7c75b510cb9117205368cf5bd25 (patch) | |
tree | 9b49377f14e9eea01d15986f3b091a2a8bb80ca1 /ri/src/main/java/javax/annotation/CheckReturnValue.java | |
parent | b0ccf1cf90b52ec3866bf436a66b208d5aff21d2 (diff) | |
download | platform_external_jsr305-66e84b9ff30de7c75b510cb9117205368cf5bd25.tar.gz platform_external_jsr305-66e84b9ff30de7c75b510cb9117205368cf5bd25.tar.bz2 platform_external_jsr305-66e84b9ff30de7c75b510cb9117205368cf5bd25.zip |
Initial checkin. JSR 305 r49
Diffstat (limited to 'ri/src/main/java/javax/annotation/CheckReturnValue.java')
-rw-r--r-- | ri/src/main/java/javax/annotation/CheckReturnValue.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ri/src/main/java/javax/annotation/CheckReturnValue.java b/ri/src/main/java/javax/annotation/CheckReturnValue.java new file mode 100644 index 0000000..370fa38 --- /dev/null +++ b/ri/src/main/java/javax/annotation/CheckReturnValue.java @@ -0,0 +1,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; +} |