1 /* 2 * @(#)Deprecated.java 1.4 04/06/10 3 * 4 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 5 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 6 */ 7 8 package java.lang; 9 10 import java.lang.annotation.*; 11 12 /** 13 * A program element annotated @Deprecated is one that programmers 14 * are discouraged from using, typically because it is dangerous, 15 * or because a better alternative exists. Compilers warn when a 16 * deprecated program element is used or overridden in non-deprecated code. 17 * 18 * @author Neal Gafter 19 * @version 1.4, 06/10/04 20 * @since 1.5 21 */ 22 @Documented 23 @Retention(RetentionPolicy.RUNTIME) 24 public @interface Deprecated { 25 } 26