author | tbell |
Wed, 19 Oct 2016 07:48:49 -0700 | |
changeset 41632 | c599331f6040 |
parent 25450 | 9db7fe8de854 |
permissions | -rw-r--r-- |
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 | 26 |
import java.util.List; |
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 | 43 |
|
44 |
/** |
|
45 |
* returns a collection with type param |
|
46 |
* @return something |
|
47 |
*/ |
|
48 |
public List<? extends UsedClass> foo(){return null;} |
|
49 |
||
50 |
/** |
|
51 |
* returns and takes type param variants |
|
52 |
* @param <T> yeah |
|
53 |
* @return returns a type param |
|
54 |
*/ |
|
55 |
public <T extends UsedInterface<? super T>> UsedInterfaceA<T> withTypeParametersOfType(Class<? extends UsedInterface> c){return null;} |
|
56 |
||
57 |
/** |
|
58 |
* returns a type param |
|
59 |
* @param <T> a param |
|
60 |
* @return something |
|
61 |
*/ |
|
62 |
public <T extends UsedInterface>T[] withReturningTypeParameters(){return null;} |
|
63 |
||
64 |
/** |
|
65 |
* a return a type parameter, as a static method |
|
66 |
* @param <T> a type param |
|
67 |
* @param enumType something |
|
68 |
* @param name something |
|
69 |
* @return a trype param |
|
70 |
*/ |
|
71 |
public static <T extends UsedInterface<T>> T withReturnVariant(Class<T> enumType, String name){return null;} |
|
72 |
||
73 |
/** |
|
74 |
* another variant of a method returning type parameters |
|
75 |
* @param <T> something |
|
76 |
* @param listenerInterface something |
|
77 |
* @param target something |
|
78 |
* @param action something |
|
79 |
* @return a type param |
|
80 |
*/ |
|
81 |
public <T> T create(UsedInterfaceA<T> listenerInterface, UsedInterface target, String action){return null;} |
|
82 |
||
83 |
/** |
|
84 |
* input is an array |
|
85 |
* @param elements a vararg |
|
86 |
*/ |
|
87 |
public void addAll(UsedInterface... elements) {} |
|
25284
e6a8d468b838
8047157: [javadoc] fixup tests for determinism and add classes uses
ksrini
parents:
diff
changeset
|
88 |
} |