src/share/classes/java/lang/Deprecated.java

Print this page

        

*** 24,33 **** --- 24,34 ---- */ package java.lang; import java.lang.annotation.*; + import static java.lang.annotation.ElementType.*; /** * A program element annotated @Deprecated is one that programmers * are discouraged from using, typically because it is dangerous, * or because a better alternative exists. Compilers warn when a
*** 36,42 **** --- 37,44 ---- * @author Neal Gafter * @since 1.5 */ @Documented @Retention(RetentionPolicy.RUNTIME) + @Target(value={CONSTRUCTOR, FIELD, LOCAL_VARIABLE, METHOD, PACKAGE, PARAMETER, TYPE}) public @interface Deprecated { }