author | jjg |
Thu, 16 Nov 2017 15:01:45 -0800 | |
changeset 47846 | 4e78aba768f0 |
parent 47300 | a905ce398074 |
child 48213 | 59696a3595bd |
permissions | -rw-r--r-- |
10 | 1 |
/* |
44297
e03f5fb3714b
8175200: Long method signatures disturb Method Summary table
bpatel
parents:
42816
diff
changeset
|
2 |
* Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. |
10 | 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 |
* |
|
5520 | 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. |
|
10 | 22 |
*/ |
23 |
||
24 |
/* |
|
25 |
* @test |
|
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
26 |
* @bug 4927552 8026567 8071982 8162674 8175200 8175218 8183511 8186332 8169819 8074407 |
47846 | 27 |
* @summary test generated docs for deprecated items |
10 | 28 |
* @author jamieh |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
29 |
* @library ../lib |
36526 | 30 |
* @modules jdk.javadoc/jdk.javadoc.internal.tool |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
31 |
* @build JavadocTester |
10 | 32 |
* @run main TestDeprecatedDocs |
33 |
*/ |
|
34 |
||
35 |
public class TestDeprecatedDocs extends JavadocTester { |
|
36 |
||
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
37 |
public static void main(String... args) throws Exception { |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
38 |
TestDeprecatedDocs tester = new TestDeprecatedDocs(); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
39 |
tester.runTests(); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
40 |
} |
10 | 41 |
|
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
42 |
@Test |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
43 |
void test() { |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
44 |
javadoc("-d", "out", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
45 |
"-sourcepath", testSrc, |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
46 |
"pkg"); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
47 |
checkExit(Exit.OK); |
10 | 48 |
|
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
49 |
checkOutput("deprecated-list.html", true, |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
50 |
"annotation_test1 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
51 |
"annotation_test2 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
52 |
"annotation_test3 passes", |
36705 | 53 |
"annotation_test4 passes.", |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
54 |
"class_test1 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
55 |
"class_test2 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
56 |
"class_test3 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
57 |
"class_test4 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
58 |
"enum_test1 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
59 |
"enum_test2 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
60 |
"error_test1 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
61 |
"error_test2 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
62 |
"error_test3 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
63 |
"error_test4 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
64 |
"exception_test1 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
65 |
"exception_test2 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
66 |
"exception_test3 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
67 |
"exception_test4 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
68 |
"interface_test1 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
69 |
"interface_test2 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
70 |
"interface_test3 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
71 |
"interface_test4 passes", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
72 |
"pkg.DeprecatedClassByAnnotation", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
73 |
"pkg.DeprecatedClassByAnnotation()", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
74 |
"pkg.DeprecatedClassByAnnotation.method()", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
75 |
"pkg.DeprecatedClassByAnnotation.field" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
76 |
); |
10 | 77 |
|
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
78 |
checkOutput("pkg/DeprecatedClassByAnnotation.html", true, |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
79 |
"<pre>@Deprecated\n" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
80 |
+ "public class <span class=\"typeNameLabel\">DeprecatedClassByAnnotation</span>\n" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
81 |
+ "extends java.lang.Object</pre>", |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
82 |
"<pre>@Deprecated(forRemoval=true)\n" |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
83 |
+ "public int field</pre>\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
84 |
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal: This API element is subject to removal in a future version.</span></div>", |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
85 |
"<pre>@Deprecated(forRemoval=true)\n" |
47284
355349babaf4
8186332: Fix method signature in method summary table
bpatel
parents:
47272
diff
changeset
|
86 |
+ "public DeprecatedClassByAnnotation()</pre>\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
87 |
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal: This API element is subject to removal in a future version.</span></div>", |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
88 |
"<pre>@Deprecated\n" |
47284
355349babaf4
8186332: Fix method signature in method summary table
bpatel
parents:
47272
diff
changeset
|
89 |
+ "public void method()</pre>\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
90 |
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated.</span></div>"); |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
91 |
|
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
92 |
checkOutput("pkg/TestAnnotationType.html", true, |
47272 | 93 |
"<hr>\n" |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
94 |
+ "<pre>@Deprecated(forRemoval=true)\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
95 |
+ "@Documented\n" |
47272 | 96 |
+ "public @interface <span class=\"memberNameLabel\">TestAnnotationType</span></pre>\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
97 |
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal: This API element is subject to removal in a future version.</span>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
98 |
+ "<div class=\"deprecationComment\">annotation_test1 passes.</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
99 |
+ "</div>", |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
100 |
"<pre>@Deprecated(forRemoval=true)\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
101 |
+ "static final int field</pre>\n" |
47272 | 102 |
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal: This " |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
103 |
+ "API element is subject to removal in a future version.</span>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
104 |
+ "<div class=\"deprecationComment\">annotation_test4 passes.</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
105 |
+ "</div>", |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
106 |
"<pre>@Deprecated(forRemoval=true)\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
107 |
+ "int required</pre>\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
108 |
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal: This API element is subject to removal in a future version.</span>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
109 |
+ "<div class=\"deprecationComment\">annotation_test3 passes.</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
110 |
+ "</div>", |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
111 |
"<pre>java.lang.String optional</pre>\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
112 |
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated.</span>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
113 |
+ "<div class=\"deprecationComment\">annotation_test2 passes.</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
114 |
+ "</div>"); |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
115 |
|
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
116 |
checkOutput("pkg/TestClass.html", true, |
47272 | 117 |
"<hr>\n" |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
118 |
+ "<pre>@Deprecated(forRemoval=true)\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
119 |
+ "public class <span class=\"typeNameLabel\">TestClass</span>\n" |
47272 | 120 |
+ "extends java.lang.Object</pre>\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
121 |
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal: This API element is subject to removal in a future version.</span>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
122 |
+ "<div class=\"deprecationComment\">class_test1 passes.</div>\n" |
47272 | 123 |
+ "</div>", |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
124 |
"<pre>@Deprecated(forRemoval=true)\n" |
47284
355349babaf4
8186332: Fix method signature in method summary table
bpatel
parents:
47272
diff
changeset
|
125 |
+ "public TestClass()</pre>\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
126 |
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal: This API element is subject to removal in a future version.</span>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
127 |
+ "<div class=\"deprecationComment\">class_test3 passes. This is the second sentence of deprecated description for a constructor.</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
128 |
+ "</div>", |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
129 |
"<td class=\"colLast\">\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
130 |
+ "<div class=\"block\"><span class=\"deprecatedLabel\">Deprecated.</span>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
131 |
+ "<div class=\"deprecationComment\">class_test2 passes.</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
132 |
+ "</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
133 |
+ "</td>", |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
134 |
"<td class=\"colLast\">\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
135 |
+ "<div class=\"block\"><span class=\"deprecatedLabel\">Deprecated, for removal: This API element is subject to removal in a future version.</span>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
136 |
+ "<div class=\"deprecationComment\">class_test3 passes.</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
137 |
+ "</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
138 |
+ "</td>", |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
139 |
"<td class=\"colLast\">\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
140 |
+ "<div class=\"block\"><span class=\"deprecatedLabel\">Deprecated.</span>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
141 |
+ "<div class=\"deprecationComment\">class_test4 passes.</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
142 |
+ "</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
143 |
+ "</td>"); |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
144 |
|
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
145 |
checkOutput("pkg/TestClass.html", false, |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
146 |
"<div class=\"deprecationComment\">class_test2 passes. This is the second sentence of deprecated description for a field.</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
147 |
+ "</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
148 |
+ "</td>", |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
149 |
"<div class=\"deprecationComment\">class_test3 passes. This is the second sentence of deprecated description for a constructor.</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
150 |
+ "</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
151 |
+ "</td>", |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
152 |
"<div class=\"deprecationComment\">class_test4 passes. This is the second sentence of deprecated description for a method.</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
153 |
+ "</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
154 |
+ "</td>"); |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
155 |
|
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
156 |
checkOutput("pkg/TestEnum.html", true, |
47272 | 157 |
"<hr>\n" |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
158 |
+ "<pre>@Deprecated(forRemoval=true)\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
159 |
+ "public enum <span class=\"typeNameLabel\">TestEnum</span>\n" |
47272 | 160 |
+ "extends java.lang.Enum<<a href=\"../pkg/TestEnum.html\" title=\"enum in pkg\">TestEnum</a>></pre>\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
161 |
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal: This API element is subject to removal in a future version.</span>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
162 |
+ "<div class=\"deprecationComment\">enum_test1 passes.</div>\n" |
47272 | 163 |
+ "</div>", |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
164 |
"<pre>@Deprecated(forRemoval=true)\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
165 |
+ "public static final <a href=\"../pkg/TestEnum.html\" title=\"enum in pkg\">TestEnum</a> FOR_REMOVAL</pre>\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
166 |
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal: This API element is subject to removal in a future version.</span>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
167 |
+ "<div class=\"deprecationComment\">enum_test3 passes.</div>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
168 |
+ "</div>"); |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
169 |
|
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
170 |
checkOutput("pkg/TestError.html", true, |
47272 | 171 |
"<hr>\n" |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
172 |
+ "<pre>@Deprecated(forRemoval=true)\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
173 |
+ "public class <span class=\"typeNameLabel\">TestError</span>\n" |
47272 | 174 |
+ "extends java.lang.Error</pre>\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
175 |
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal: This API element is subject to removal in a future version.</span>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
176 |
+ "<div class=\"deprecationComment\">error_test1 passes.</div>\n" |
47272 | 177 |
+ "</div>"); |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
178 |
|
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
179 |
checkOutput("pkg/TestException.html", true, |
47272 | 180 |
"<hr>\n" |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
181 |
+ "<pre>@Deprecated(forRemoval=true)\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
182 |
+ "public class <span class=\"typeNameLabel\">TestException</span>\n" |
47272 | 183 |
+ "extends java.lang.Exception</pre>\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
184 |
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal: This API element is subject to removal in a future version.</span>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
185 |
+ "<div class=\"deprecationComment\">exception_test1 passes.</div>\n" |
47272 | 186 |
+ "</div>"); |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
187 |
|
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
188 |
checkOutput("pkg/TestInterface.html", true, |
47272 | 189 |
"<hr>\n" |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
190 |
+ "<pre>@Deprecated(forRemoval=true)\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
191 |
+ "public class <span class=\"typeNameLabel\">TestInterface</span>\n" |
47272 | 192 |
+ "extends java.lang.Object</pre>\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
193 |
+ "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal: This API element is subject to removal in a future version.</span>\n" |
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
194 |
+ "<div class=\"deprecationComment\">interface_test1 passes.</div>\n" |
47272 | 195 |
+ "</div>"); |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
196 |
|
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
197 |
checkOutput("deprecated-list.html", true, |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
198 |
"<ul>\n" |
47299 | 199 |
+ "<li><a href=\"#forRemoval\">For Removal</a></li>\n" |
200 |
+ "<li><a href=\"#class\">Classes</a></li>\n" |
|
201 |
+ "<li><a href=\"#enum\">Enums</a></li>\n" |
|
202 |
+ "<li><a href=\"#exception\">Exceptions</a></li>\n" |
|
203 |
+ "<li><a href=\"#error\">Errors</a></li>\n" |
|
204 |
+ "<li><a href=\"#annotation.type\">Annotation Types</a></li>\n" |
|
205 |
+ "<li><a href=\"#field\">Fields</a></li>\n" |
|
206 |
+ "<li><a href=\"#method\">Methods</a></li>\n" |
|
207 |
+ "<li><a href=\"#constructor\">Constructors</a></li>\n" |
|
208 |
+ "<li><a href=\"#enum.constant\">Enum Constants</a></li>\n" |
|
209 |
+ "<li><a href=\"#annotation.type.member\">Annotation Type Elements</a></li>\n" |
|
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
210 |
+ "</ul>", |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
211 |
"<a name=\"forRemoval\">", |
47299 | 212 |
"<table class=\"deprecatedSummary\" summary=\"For Removal table, listing for removal, and an explanation\">\n" |
213 |
+ "<caption><span>For Removal</span><span class=\"tabEnd\"> </span></caption>\n" |
|
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
214 |
+ "<tr>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
215 |
+ "<th class=\"colFirst\" scope=\"col\">Element</th>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
216 |
+ "<th class=\"colLast\" scope=\"col\">Description</th>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
217 |
+ "</tr>", |
47299 | 218 |
"<table class=\"deprecatedSummary\" summary=\"Enums table, listing enums, and an explanation\">\n" |
219 |
+ "<caption><span>Enums</span><span class=\"tabEnd\"> </span></caption>\n" |
|
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
220 |
+ "<tr>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
221 |
+ "<th class=\"colFirst\" scope=\"col\">Enum</th>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
222 |
+ "<th class=\"colLast\" scope=\"col\">Description</th>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
223 |
+ "</tr>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
224 |
+ "<tbody>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
225 |
+ "<tr class=\"altColor\">\n" |
47299 | 226 |
+ "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/TestEnum.html\" title=\"enum in pkg\">pkg.TestEnum</a></th>\n" |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
227 |
+ "<td class=\"colLast\">\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
228 |
+ "<div class=\"deprecationComment\">enum_test1 passes.</div>\n" |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
229 |
+ "</td>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
230 |
+ "</tr>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
231 |
+ "</tbody>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
232 |
+ "</table>", |
47299 | 233 |
"<table class=\"deprecatedSummary\" summary=\"Exceptions table, listing exceptions, and an explanation\">\n" |
234 |
+ "<caption><span>Exceptions</span><span class=\"tabEnd\"> </span></caption>\n" |
|
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
235 |
+ "<tr>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
236 |
+ "<th class=\"colFirst\" scope=\"col\">Exceptions</th>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
237 |
+ "<th class=\"colLast\" scope=\"col\">Description</th>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
238 |
+ "</tr>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
239 |
+ "<tbody>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
240 |
+ "<tr class=\"altColor\">\n" |
47299 | 241 |
+ "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/TestException.html\" title=\"class in pkg\">pkg.TestException</a></th>\n" |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
242 |
+ "<td class=\"colLast\">\n" |
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
243 |
+ "<div class=\"deprecationComment\">exception_test1 passes.</div>\n" |
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
244 |
+ "</td>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
245 |
+ "</tr>\n" |
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
246 |
+ "</tbody>\n" |
47299 | 247 |
+ "</table>", |
248 |
"<table class=\"deprecatedSummary\" summary=\"Fields table, listing fields, and an explanation\">\n" |
|
249 |
+ "<caption><span>Fields</span><span class=\"tabEnd\"> </span></caption>\n" |
|
250 |
+ "<tr>\n" |
|
251 |
+ "<th class=\"colFirst\" scope=\"col\">Field</th>\n" |
|
252 |
+ "<th class=\"colLast\" scope=\"col\">Description</th>\n" |
|
253 |
+ "</tr>\n" |
|
254 |
+ "<tbody>\n" |
|
255 |
+ "<tr class=\"altColor\">\n" |
|
256 |
+ "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/DeprecatedClassByAnnotation.html#field\">pkg.DeprecatedClassByAnnotation.field</a></th>\n" |
|
47846 | 257 |
+ "<td class=\"colLast\"></td>\n" |
47299 | 258 |
+ "</tr>\n" |
259 |
+ "<tr class=\"rowColor\">\n" |
|
260 |
+ "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/TestClass.html#field\">pkg.TestClass.field</a></th>\n" |
|
261 |
+ "<td class=\"colLast\">\n" |
|
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
262 |
+ "<div class=\"deprecationComment\">class_test2 passes. This is the second sentence of deprecated description for a field.</div>\n" |
47299 | 263 |
+ "</td>\n" |
264 |
+ "</tr>\n" |
|
265 |
+ "<tr class=\"altColor\">\n" |
|
266 |
+ "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/TestError.html#field\">pkg.TestError.field</a></th>\n" |
|
267 |
+ "<td class=\"colLast\">\n" |
|
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
268 |
+ "<div class=\"deprecationComment\">error_test2 passes.</div>\n" |
47299 | 269 |
+ "</td>\n" |
270 |
+ "</tr>\n" |
|
271 |
+ "<tr class=\"rowColor\">\n" |
|
272 |
+ "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/TestException.html#field\">pkg.TestException.field</a></th>\n" |
|
273 |
+ "<td class=\"colLast\">\n" |
|
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
274 |
+ "<div class=\"deprecationComment\">exception_test2 passes.</div>\n" |
47299 | 275 |
+ "</td>\n" |
276 |
+ "</tr>\n" |
|
277 |
+ "<tr class=\"altColor\">\n" |
|
278 |
+ "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/TestInterface.html#field\">pkg.TestInterface.field</a></th>\n" |
|
279 |
+ "<td class=\"colLast\">\n" |
|
47300
a905ce398074
8074407: javadoc: using <pre> after @deprecated tag causes warnings
bpatel
parents:
47299
diff
changeset
|
280 |
+ "<div class=\"deprecationComment\">interface_test2 passes.</div>\n" |
47299 | 281 |
+ "</td>\n" |
282 |
+ "</tr>\n" |
|
283 |
+ "</tbody>\n" |
|
42816
3638773ff1b0
8162674: change javadoc output text and style emitted by for-removal deprecations
bpatel
parents:
36709
diff
changeset
|
284 |
+ "</table>"); |
10 | 285 |
} |
286 |
} |