jaroslav@52: /* jaroslav@52: * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. jaroslav@52: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. jaroslav@52: * jaroslav@52: * This code is free software; you can redistribute it and/or modify it jaroslav@52: * under the terms of the GNU General Public License version 2 only, as jaroslav@52: * published by the Free Software Foundation. Oracle designates this jaroslav@52: * particular file as subject to the "Classpath" exception as provided jaroslav@52: * by Oracle in the LICENSE file that accompanied this code. jaroslav@52: * jaroslav@52: * This code is distributed in the hope that it will be useful, but WITHOUT jaroslav@52: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or jaroslav@52: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License jaroslav@52: * version 2 for more details (a copy is included in the LICENSE file that jaroslav@52: * accompanied this code). jaroslav@52: * jaroslav@52: * You should have received a copy of the GNU General Public License version jaroslav@52: * 2 along with this work; if not, write to the Free Software Foundation, jaroslav@52: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. jaroslav@52: * jaroslav@52: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA jaroslav@52: * or visit www.oracle.com if you need additional information or have any jaroslav@52: * questions. jaroslav@52: */ jaroslav@52: jaroslav@52: package java.lang; jaroslav@52: jaroslav@52: import java.lang.annotation.*; jaroslav@52: import static java.lang.annotation.ElementType.*; jaroslav@52: jaroslav@52: /** jaroslav@52: * A program element annotated @Deprecated is one that programmers jaroslav@52: * are discouraged from using, typically because it is dangerous, jaroslav@52: * or because a better alternative exists. Compilers warn when a jaroslav@52: * deprecated program element is used or overridden in non-deprecated code. jaroslav@52: * jaroslav@52: * @author Neal Gafter jaroslav@52: * @since 1.5 jaroslav@52: */ jaroslav@52: @Documented jaroslav@52: @Retention(RetentionPolicy.RUNTIME) jaroslav@52: @Target(value={CONSTRUCTOR, FIELD, LOCAL_VARIABLE, METHOD, PACKAGE, PARAMETER, TYPE}) jaroslav@52: public @interface Deprecated { jaroslav@52: }