emul/mini/src/main/java/java/lang/Deprecated.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Wed, 23 Jan 2013 20:39:23 +0100
branchemul
changeset 554 05224402145d
parent 52 emul/src/main/java/java/lang/Deprecated.java@94c1a17117f3
permissions -rw-r--r--
First attempt to separate 'mini' profile from the rest of JDK APIs
jaroslav@52
     1
/*
jaroslav@52
     2
 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
jaroslav@52
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jaroslav@52
     4
 *
jaroslav@52
     5
 * This code is free software; you can redistribute it and/or modify it
jaroslav@52
     6
 * under the terms of the GNU General Public License version 2 only, as
jaroslav@52
     7
 * published by the Free Software Foundation.  Oracle designates this
jaroslav@52
     8
 * particular file as subject to the "Classpath" exception as provided
jaroslav@52
     9
 * by Oracle in the LICENSE file that accompanied this code.
jaroslav@52
    10
 *
jaroslav@52
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
jaroslav@52
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jaroslav@52
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
jaroslav@52
    14
 * version 2 for more details (a copy is included in the LICENSE file that
jaroslav@52
    15
 * accompanied this code).
jaroslav@52
    16
 *
jaroslav@52
    17
 * You should have received a copy of the GNU General Public License version
jaroslav@52
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
jaroslav@52
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jaroslav@52
    20
 *
jaroslav@52
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
jaroslav@52
    22
 * or visit www.oracle.com if you need additional information or have any
jaroslav@52
    23
 * questions.
jaroslav@52
    24
 */
jaroslav@52
    25
jaroslav@52
    26
package java.lang;
jaroslav@52
    27
jaroslav@52
    28
import java.lang.annotation.*;
jaroslav@52
    29
import static java.lang.annotation.ElementType.*;
jaroslav@52
    30
jaroslav@52
    31
/**
jaroslav@52
    32
 * A program element annotated &#64;Deprecated is one that programmers
jaroslav@52
    33
 * are discouraged from using, typically because it is dangerous,
jaroslav@52
    34
 * or because a better alternative exists.  Compilers warn when a
jaroslav@52
    35
 * deprecated program element is used or overridden in non-deprecated code.
jaroslav@52
    36
 *
jaroslav@52
    37
 * @author  Neal Gafter
jaroslav@52
    38
 * @since 1.5
jaroslav@52
    39
 */
jaroslav@52
    40
@Documented
jaroslav@52
    41
@Retention(RetentionPolicy.RUNTIME)
jaroslav@52
    42
@Target(value={CONSTRUCTOR, FIELD, LOCAL_VARIABLE, METHOD, PACKAGE, PARAMETER, TYPE})
jaroslav@52
    43
public @interface Deprecated {
jaroslav@52
    44
}