src/share/classes/jdk/Exported.java

Fri, 04 Oct 2013 10:00:28 -0700

author
darcy
date
Fri, 04 Oct 2013 10:00:28 -0700
changeset 2083
379c04c090cf
parent 1540
src/share/classes/jdk/Supported.java@55cca2f38ee6
child 2153
b82982ac3ca2
permissions
-rw-r--r--

8025913: Rename jdk.Supported to jdk.Exported
Reviewed-by: psandoz, forax, lancea, alanb, mchung, jjg

darcy@1540 1 /*
darcy@1540 2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
darcy@1540 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
darcy@1540 4 *
darcy@1540 5 * This code is free software; you can redistribute it and/or modify it
darcy@1540 6 * under the terms of the GNU General Public License version 2 only, as
darcy@1540 7 * published by the Free Software Foundation. Oracle designates this
darcy@1540 8 * particular file as subject to the "Classpath" exception as provided
darcy@1540 9 * by Oracle in the LICENSE file that accompanied this code.
darcy@1540 10 *
darcy@1540 11 * This code is distributed in the hope that it will be useful, but WITHOUT
darcy@1540 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
darcy@1540 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
darcy@1540 14 * version 2 for more details (a copy is included in the LICENSE file that
darcy@1540 15 * accompanied this code).
darcy@1540 16 *
darcy@1540 17 * You should have received a copy of the GNU General Public License version
darcy@1540 18 * 2 along with this work; if not, write to the Free Software Foundation,
darcy@1540 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
darcy@1540 20 *
darcy@1540 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
darcy@1540 22 * or visit www.oracle.com if you need additional information or have any
darcy@1540 23 * questions.
darcy@1540 24 */
darcy@1540 25
darcy@1540 26 package jdk;
darcy@1540 27
darcy@1540 28 import java.lang.annotation.*;
darcy@1540 29
darcy@1540 30 /**
darcy@2083 31 * Indicates whether or not a JDK specific type or package is an
darcy@2083 32 * exported part of the JDK suitable for use outside of the JDK
darcy@2083 33 * implementation itself.
darcy@1540 34 *
darcy@1540 35 * This annotation should only be applied to types and packages
darcy@1540 36 * <em>outside</em> of the Java SE namespaces of {@code java.*} and
darcy@1540 37 * {@code javax.*} packages. For example, certain portions of {@code
darcy@1540 38 * com.sun.*} are official parts of the JDK meant to be generally
darcy@1540 39 * usable while other portions of {@code com.sun.*} are not. This
darcy@1540 40 * annotation type allows those portions to be easily and
darcy@1540 41 * programmaticly distinguished.
darcy@1540 42 *
darcy@1540 43 * @since 1.8
darcy@1540 44 */
darcy@1540 45 @Documented
darcy@1540 46 @Retention(RetentionPolicy.RUNTIME)
darcy@1540 47 @Target({ElementType.TYPE, ElementType.PACKAGE})
darcy@2083 48 @Exported
darcy@2083 49 public @interface Exported {
darcy@1540 50 /**
darcy@2083 51 * Whether or not the annotated type or package is an exported part of the JDK.
darcy@1540 52 */
darcy@1540 53 boolean value() default true;
darcy@1540 54 }

mercurial