langtools/test/com/sun/javadoc/testSerializedForm/pkg1/NestedInnerClass.java
author lana
Mon, 11 Aug 2014 09:25:30 -0700
changeset 25880 e5967ea9bde2
parent 23805 3ef77c1ebf0b
child 32337 c9d3ab9f601c
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
23805
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
     1
/*
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
     2
 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
     4
 *
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    10
 *
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    15
 * accompanied this code).
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    16
 *
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    20
 *
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    23
 * questions.
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    24
 */
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    25
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    26
package pkg1;
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    27
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    28
import java.io.*;
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    29
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    30
/**
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    31
 * A test class where the outer class is package private and the inner class is private
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    32
 * and a nested inner class is protected.
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    33
 *
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    34
 * @author      Bhavesh Patel
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    35
 */
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    36
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    37
class NestedInnerClass {
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    38
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    39
    private static class InnerClass {
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    40
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    41
        protected static class ProNestedInnerClass implements java.io.Serializable {
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    42
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    43
            public final int SERIALIZABLE_CONSTANT = 1;
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    44
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    45
            /**
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    46
             * @param s ObjectInputStream.
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    47
             * @throws IOException when there is an I/O error.
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    48
             * @serial
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    49
             */
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    50
            private void readObject(ObjectInputStream s) throws IOException {
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    51
            }
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    52
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    53
            /**
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    54
             * @param s ObjectOutputStream.
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    55
             * @throws IOException when there is an I/O error.
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    56
             * @serial
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    57
             */
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    58
            private void writeObject(ObjectOutputStream s) throws IOException {
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    59
            }
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    60
        }
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    61
    }
3ef77c1ebf0b 8032066: Serialized form has broken links to non private inner classes of package private
bpatel
parents:
diff changeset
    62
}