Please note that this documentation is not final and is subject to change.

Java™ Platform
Standard Ed. 7

DRAFT internal-b23

java.lang
Annotation Type Deprecated


@Documented
@Retention(value=RUNTIME)
public @interface Deprecated

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 deprecated program element is used or overridden in non-deprecated code.

Since:
1.5


Java™ Platform
Standard Ed. 7

DRAFT internal-b23

Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.