langtools/test/com/sun/javadoc/testUseOption/pkg1/C10.java
author tbell
Wed, 19 Oct 2016 07:48:49 -0700
changeset 41632 c599331f6040
parent 25450 9db7fe8de854
permissions -rw-r--r--
8167600: jib make run-test for langtools and intermittent failures on windows-x86 Reviewed-by: ihse
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
25284
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
     1
/*
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
     2
 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
     4
 *
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
     7
 * published by the Free Software Foundation.
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
     8
 *
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    13
 * accompanied this code).
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    14
 *
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    18
 *
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    21
 * questions.
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    22
 */
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    23
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    24
package pkg1;
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    25
25450
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    26
import java.util.List;
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    27
25284
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    28
/**
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    29
 * An implementor
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    30
 *
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    31
 */
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    32
public class C10 extends UsedClass implements UsedInterface, UsedInterfaceA {
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    33
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    34
    /**
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    35
     * Nothing
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    36
     */
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    37
    public void doNothing() {}
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    38
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    39
    /**
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    40
     * Me too
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    41
     */
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    42
    public void doNothingA() {}
25450
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    43
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    44
    /**
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    45
     * returns a collection with type param
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    46
     * @return something
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    47
     */
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    48
    public List<? extends UsedClass> foo(){return null;}
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    49
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    50
    /**
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    51
     * returns and takes type param variants
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    52
     * @param <T> yeah
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    53
     * @return returns a type param
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    54
     */
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    55
    public <T extends UsedInterface<? super T>> UsedInterfaceA<T> withTypeParametersOfType(Class<? extends UsedInterface> c){return null;}
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    56
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    57
    /**
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    58
     * returns a type param
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    59
     * @param <T> a param
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    60
     * @return something
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    61
     */
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    62
    public <T extends UsedInterface>T[] withReturningTypeParameters(){return null;}
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    63
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    64
    /**
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    65
     * a return a type parameter, as a static method
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    66
     * @param <T> a type param
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    67
     * @param enumType something
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    68
     * @param name something
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    69
     * @return a trype param
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    70
     */
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    71
    public static <T extends UsedInterface<T>> T withReturnVariant(Class<T> enumType, String name){return null;}
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    72
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    73
    /**
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    74
     * another variant of a method returning type parameters
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    75
     * @param <T> something
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    76
     * @param listenerInterface something
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    77
     * @param target something
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    78
     * @param action something
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    79
     * @return a type param
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    80
     */
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    81
    public <T> T create(UsedInterfaceA<T> listenerInterface, UsedInterface target, String action){return null;}
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    82
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    83
    /**
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    84
     * input is an array
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    85
     * @param elements a vararg
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    86
     */
9db7fe8de854 8049396: [javadoc] add more class-use test cases
ksrini
parents: 25284
diff changeset
    87
    public void addAll(UsedInterface... elements) {}
25284
e6a8d468b838 8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff changeset
    88
}