|
1 /* |
|
2 * Copyright (c) 2014, 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. |
|
8 * |
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 * version 2 for more details (a copy is included in the LICENSE file that |
|
13 * accompanied this code). |
|
14 * |
|
15 * You should have received a copy of the GNU General Public License version |
|
16 * 2 along with this work; if not, write to the Free Software Foundation, |
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 * |
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
20 * or visit www.oracle.com if you need additional information or have any |
|
21 * questions. |
|
22 */ |
|
23 |
|
24 package pkg1; |
|
25 |
|
26 import java.util.ArrayList; |
|
27 import java.util.Collection; |
|
28 import java.util.List; |
|
29 |
|
30 public class MethodOrder { |
|
31 /** |
|
32 * method test for ordering parameters |
|
33 * @return UsedClass something |
|
34 */ |
|
35 public UsedClass m(){return null;} |
|
36 /** |
|
37 * method test for ordering parameters |
|
38 * @param i a param |
|
39 * @return UsedClass something |
|
40 */ |
|
41 public UsedClass m(int i) {return null;} |
|
42 |
|
43 /** |
|
44 * method test for ordering parameters |
|
45 * @param i1 a param |
|
46 * @param i2 a param |
|
47 * @return something |
|
48 */ |
|
49 public UsedClass m(int i1, int i2) {return null;} |
|
50 |
|
51 /** |
|
52 * method test for ordering parameters |
|
53 * @param array a param |
|
54 * @return something |
|
55 */ |
|
56 public UsedClass m(byte[] array) {return null;} |
|
57 |
|
58 /** |
|
59 * method test for ordering parameters |
|
60 * @param in a param |
|
61 * @return something |
|
62 */ |
|
63 public UsedClass m(Integer in) {return null;} |
|
64 |
|
65 /** |
|
66 * method test for ordering parameters |
|
67 * @param i1 a param |
|
68 * @param i2 a param |
|
69 * @return something |
|
70 */ |
|
71 public UsedClass m(Integer i1, Integer i2) {return null;} |
|
72 |
|
73 /** |
|
74 * method test for ordering parameters |
|
75 * @param i1 a param |
|
76 * @param i2 a param |
|
77 * @return something |
|
78 */ |
|
79 public UsedClass m(int i1, Integer i2) {return null;} |
|
80 |
|
81 /** |
|
82 * method test for ordering parameters |
|
83 * @param i1 a param |
|
84 * @param i2 a param |
|
85 * @return something |
|
86 */ |
|
87 public UsedClass m(Integer i1, int i2) {return null;} |
|
88 |
|
89 /** |
|
90 * method test for ordering parameters |
|
91 * @param d a param |
|
92 * @return something |
|
93 */ |
|
94 public UsedClass m(double d) {return null;} |
|
95 |
|
96 /** |
|
97 * method test for ordering parameters |
|
98 * @param i1 a param |
|
99 * @param i2 a param |
|
100 * @return something |
|
101 */ |
|
102 public UsedClass m(double i1, double i2) {return null;} |
|
103 |
|
104 /** |
|
105 * method test for ordering parameters |
|
106 * @param in a param |
|
107 * @return something |
|
108 */ |
|
109 public UsedClass m(Double in) {return null;} |
|
110 |
|
111 /** |
|
112 * method test for ordering parameters |
|
113 * @param i1 a param |
|
114 * @param i2 a param |
|
115 * @return something |
|
116 */ |
|
117 public UsedClass m(Double i1, Double i2) {return null;} |
|
118 |
|
119 /** |
|
120 * method test for ordering parameters |
|
121 * @param i1 a param |
|
122 * @param i2 a param |
|
123 * @return something |
|
124 */ |
|
125 public UsedClass m(double i1, Double i2) {return null;} |
|
126 |
|
127 /** |
|
128 * method test for ordering parameters |
|
129 * @param l1 param |
|
130 * @return something |
|
131 */ |
|
132 public UsedClass m(long l1) {return null;} |
|
133 |
|
134 /** |
|
135 * method test for ordering parameters |
|
136 * @param l1 param |
|
137 * @param l2 param |
|
138 * @return something |
|
139 */ |
|
140 public UsedClass m(long l1, Long l2) {return null;} |
|
141 |
|
142 /** |
|
143 * method test for ordering parameters |
|
144 * @param l1 param |
|
145 * @param l2 param |
|
146 * @return something |
|
147 */ |
|
148 public UsedClass m(long l1, long l2) {return null;} |
|
149 |
|
150 /** |
|
151 * method test for ordering parameters |
|
152 * @param array a param |
|
153 * @return something |
|
154 */ |
|
155 public UsedClass m(Object[] array); |
|
156 |
|
157 /** |
|
158 * method test for ordering parameters |
|
159 * @param arrayarray two dimensional array |
|
160 * @return something |
|
161 */ |
|
162 public UsedClass m(Object[][] arrayarray); |
|
163 |
|
164 /** |
|
165 * method test for ordering parameters |
|
166 * @param i1 a param |
|
167 * @param i2 a param |
|
168 * @return something |
|
169 */ |
|
170 public UsedClass m(Double i1, double i2) {return null;} |
|
171 |
|
172 /** |
|
173 * method test for ordering parameters |
|
174 * @param collection a param |
|
175 * @return something |
|
176 */ |
|
177 public UsedClass m(Collection collection) {return null;} |
|
178 |
|
179 /** |
|
180 * method test for ordering parameters |
|
181 * @param list a param |
|
182 * @return something |
|
183 */ |
|
184 public UsedClass m(List list) {return null;} |
|
185 |
|
186 /** |
|
187 * method test for ordering parameters |
|
188 * @param collection a param |
|
189 * @return something |
|
190 */ |
|
191 public UsedClass m(ArrayList<UsedClass> collection) {return null;} |
|
192 |
|
193 /** |
|
194 * method test for ordering parameters |
|
195 * @param u use a type param |
|
196 */ |
|
197 public void tpm(UsedClass<?> u) {} |
|
198 |
|
199 /** |
|
200 * method test for ordering parameters |
|
201 * @param u1 use a type param |
|
202 * @param u2 use a type param |
|
203 */ |
|
204 public void tpm(UsedClass<?> u1, UsedClass<?> u2) {} |
|
205 |
|
206 /** |
|
207 * method test for ordering parameters |
|
208 * @param u use a type param |
|
209 * @param array use a type param and an array |
|
210 */ |
|
211 public void tpm(UsedClass<?> u, UsedClass<?>[] array) {} |
|
212 |
|
213 /** |
|
214 * method test for ordering parameters |
|
215 * @param u use type param with extends |
|
216 * @param a some string |
|
217 */ |
|
218 public void tpm(UsedClass<? extends UsedClass> u, String a) {} |
|
219 } |