test/com/sun/javadoc/testSerializedFormDeprecationInfo/pkg1/C1.java

Wed, 27 Apr 2016 01:34:52 +0800

author
aoqi
date
Wed, 27 Apr 2016 01:34:52 +0800
changeset 0
959103a6100f
child 2525
2eb010b6cb22
permissions
-rw-r--r--

Initial load
http://hg.openjdk.java.net/jdk8u/jdk8u/langtools/
changeset: 2573:53ca196be1ae
tag: jdk8u25-b17

     1 /*
     2  * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     8  * particular file as subject to the "Classpath" exception as provided
     9  * by Oracle in the LICENSE file that accompanied this code.
    10  *
    11  * This code is distributed in the hope that it will be useful, but WITHOUT
    12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    14  * version 2 for more details (a copy is included in the LICENSE file that
    15  * accompanied this code).
    16  *
    17  * You should have received a copy of the GNU General Public License version
    18  * 2 along with this work; if not, write to the Free Software Foundation,
    19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    20  *
    21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    22  * or visit www.oracle.com if you need additional information or have any
    23  * questions.
    24  */
    26 package pkg1;
    28 import java.io.IOException;
    29 import java.io.Serializable;
    31 /**
    32  * A class comment for testing.
    33  *
    34  * @author      Bhavesh Patel
    35  * @see C2
    36  * @since       JDK1.0
    37  */
    39 public class C1 implements Serializable {
    41     /**
    42      * This field indicates whether the C1 is undecorated.
    43      *
    44      * @see #setUndecorated(boolean)
    45      * @since 1.4
    46      * @serial
    47      * @deprecated As of JDK version 1.5, replaced by
    48      * {@link C1#setUndecorated(boolean) setUndecorated(boolean)}.
    49      */
    50      @Deprecated
    51     public boolean undecorated = false;
    53     private String title;
    55     /**
    56      * This enum specifies the possible modal exclusion types.
    57      *
    58      * @since 1.6
    59      */
    60     public static enum ModalExclusionType {
    61         /**
    62          * No modal exclusion.
    63          */
    64         NO_EXCLUDE,
    65         /**
    66          * <code>APPLICATION_EXCLUDE</code> indicates that a top-level window
    67          * won't be blocked by any application-modal dialogs. Also, it isn't
    68          * blocked by document-modal dialogs from outside of its child hierarchy.
    69          */
    70         APPLICATION_EXCLUDE
    71     };
    73     /**
    74      * Constructor.
    75      *
    76      * @param title the title
    77      * @param test boolean value
    78      * @exception IllegalArgumentException if the <code>owner</code>'s
    79      *     <code>GraphicsConfiguration</code> is not from a screen device
    80      * @exception HeadlessException
    81      */
    82      public C1(String title, boolean test) {
    84      }
    86      public C1(String title) {
    88      }
    90     /**
    91      * Method comments.
    92      * @param  undecorated <code>true</code> if no decorations are
    93      *         to be enabled;
    94      *         <code>false</code> if decorations are to be enabled.
    95      * @see    #readObject()
    96      * @since 1.4
    97      */
    98     public void setUndecorated(boolean undecorated) {
    99         /* Make sure we don't run in the middle of peer creation.*/
   100     }
   102     /**
   103      * @see #setUndecorated(boolean)
   104      */
   105     public void readObject() throws IOException {
   107     }
   108 }

mercurial