author | ksrini |
Thu, 04 Jan 2018 13:32:10 -0800 | |
changeset 48442 | 3b00541635f9 |
parent 47216 | 71c04702a3d5 |
permissions | -rw-r--r-- |
14549
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
1 |
/* |
48442
3b00541635f9
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
2 |
* Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved. |
14549
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
4 |
* |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
8 |
* |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
13 |
* accompanied this code). |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
14 |
* |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
18 |
* |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
21 |
* questions. |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
22 |
*/ |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
23 |
|
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
24 |
package pkg1; |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
25 |
|
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
26 |
/** |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
27 |
* This class has a mixture of different types of methods. The methods summary |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
28 |
* table should appear with "All Methods", "Static Methods", "Instance Methods", |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
29 |
* "Concrete Methods" and "Deprecated Methods". |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
30 |
*/ |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
31 |
public class A { |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
32 |
|
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
33 |
/** |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
34 |
* This is the first concrete instance method. |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
35 |
*/ |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
36 |
public void readObject() { |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
37 |
} |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
38 |
|
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
39 |
/** |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
40 |
* This is the second concrete instance method. |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
41 |
*/ |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
42 |
public final void setStub() { |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
43 |
} |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
44 |
|
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
45 |
/** |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
46 |
* This is the third concrete instance method. |
48442
3b00541635f9
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
47 |
* @return a string |
14549
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
48 |
*/ |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
49 |
public String getParameter() { |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
50 |
return "test"; |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
51 |
} |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
52 |
|
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
53 |
/** |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
54 |
* This is the first concrete instance deprecated method. |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
55 |
* @deprecated This is a deprecated method that should appear in the tab. |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
56 |
*/ |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
57 |
public void resize() { |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
58 |
} |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
59 |
|
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
60 |
/** |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
61 |
* This is the fourth concrete instance method. |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
62 |
*/ |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
63 |
public void showStatus() { |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
64 |
} |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
65 |
|
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
66 |
/** |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
67 |
* This is the first concrete static method. |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
68 |
*/ |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
69 |
public final static void staticMethod() { |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
70 |
} |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
71 |
|
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
72 |
/** |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
73 |
* This is the second concrete instance deprecated method. |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
74 |
*/ |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
75 |
@Deprecated |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
76 |
public void init() { |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
77 |
} |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
78 |
} |