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

Wed, 18 Feb 2009 13:47:27 -0800

author
bpatel
date
Wed, 18 Feb 2009 13:47:27 -0800
changeset 222
d424ed561993
child 554
9d9f26857129
permissions
-rw-r--r--

6802694: Javadoc doclet does not display deprecated information with -nocomment option for serialized form
Reviewed-by: jjg

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

mercurial