01: package com.sun.istack;
02:
03: import java.lang.annotation.Documented;
04: import java.lang.annotation.Retention;
05: import java.lang.annotation.RetentionPolicy;
06: import java.lang.annotation.Target;
07: import java.lang.annotation.ElementType;
08:
09: /**
10: * Designates that a field, return value, argument, or a variable is guaranteed to be non-null.
11: *
12: * @author Kohsuke Kawaguchi
13: */
14: @Documented
15: @Retention(RetentionPolicy.CLASS)
16: @Target({ElementType.FIELD,ElementType.METHOD,ElementType.PARAMETER,ElementType.LOCAL_VARIABLE})
17: public @interface NotNull {
18: }
|