Lines 44-51
Link Here
|
44 |
private final int DEFAULT_VISIBILITY = 2; |
44 |
private final int DEFAULT_VISIBILITY = 2; |
45 |
private final int PRIVATE_VISIBILITY = 3; |
45 |
private final int PRIVATE_VISIBILITY = 3; |
46 |
|
46 |
|
47 |
private static String JavadocWithInvalidReferences = " /**\n" + |
47 |
private static String INVALID_CLASS_JAVADOC_REF = " /**\n" + |
48 |
" * @see X.X_dep\n" + |
48 |
" * @see X_dep\n" + |
49 |
" * @see X.X_priv\n" + |
49 |
" * @see X.X_priv\n" + |
50 |
" * @see X.Unknown\n" + |
50 |
" * @see X.Unknown\n" + |
51 |
" * @see X#X(int)\n" + |
51 |
" * @see X#X(int)\n" + |
Lines 59-65
Link Here
|
59 |
" * @see X#foo_dep(String)\n" + |
59 |
" * @see X#foo_dep(String)\n" + |
60 |
" * @see X#unknown()\n" + |
60 |
" * @see X#unknown()\n" + |
61 |
" */\n"; |
61 |
" */\n"; |
62 |
private static String JavadocWithInvalidReferencesForMethod = " /**\n" + |
62 |
private static String INVALID_METHOD_JAVADOC_REF = " /**\n" + |
63 |
" * @param str\n" + |
63 |
" * @param str\n" + |
64 |
" * @param str\n" + |
64 |
" * @param str\n" + |
65 |
" * @param xxx\n" + |
65 |
" * @param xxx\n" + |
Lines 67-73
Link Here
|
67 |
" * @throws IllegalArgumentException\n" + |
67 |
" * @throws IllegalArgumentException\n" + |
68 |
" * @throws java.io.IOException\n" + |
68 |
" * @throws java.io.IOException\n" + |
69 |
" * @throws Unknown\n" + |
69 |
" * @throws Unknown\n" + |
70 |
" * @see X.X_dep\n" + |
70 |
" * @see X_dep\n" + |
71 |
" * @see X.X_priv\n" + |
71 |
" * @see X.X_priv\n" + |
72 |
" * @see X.Unknown\n" + |
72 |
" * @see X.Unknown\n" + |
73 |
" * @see X#X(int)\n" + |
73 |
" * @see X#X(int)\n" + |
Lines 81-90
Link Here
|
81 |
" * @see X#foo_dep(String)\n" + |
81 |
" * @see X#foo_dep(String)\n" + |
82 |
" * @see X#unknown()\n" + |
82 |
" * @see X#unknown()\n" + |
83 |
" */\n"; |
83 |
" */\n"; |
84 |
private static String refClassForInvalidJavadoc = |
84 |
private static String DEP_CLASS = |
|
|
85 |
"/** @deprecated */\n" + |
86 |
"public class X_dep {}\n"; |
87 |
private static String REF_CLASS = |
85 |
"public class X {\n" + |
88 |
"public class X {\n" + |
86 |
" /** @deprecated */\n" + |
89 |
// Deprecated class must be a top level to avoid visibility issue |
87 |
" class X_dep{}\n" + |
90 |
// " /** @deprecated */\n" + |
|
|
91 |
// " class X_dep{}\n" + |
88 |
" private class X_priv{}\n" + |
92 |
" private class X_priv{}\n" + |
89 |
" /** @deprecated */\n" + |
93 |
" /** @deprecated */\n" + |
90 |
" int x_dep;\n" + |
94 |
" int x_dep;\n" + |
Lines 96-166
Link Here
|
96 |
" void foo_dep() {}\n" + |
100 |
" void foo_dep() {}\n" + |
97 |
" private void foo_priv() {}\n" + |
101 |
" private void foo_priv() {}\n" + |
98 |
" }\n"; |
102 |
" }\n"; |
99 |
private static String[] InvalidReferencesClassJavadocComments = { |
103 |
private static String[] CLASSES_INVALID_COMMENT = { |
100 |
"X.java", |
104 |
"X.java", |
101 |
refClassForInvalidJavadoc, |
105 |
REF_CLASS, |
|
|
106 |
"X_dep.java", |
107 |
DEP_CLASS, |
102 |
"Y.java", |
108 |
"Y.java", |
103 |
"public class Y {\n" + |
109 |
"public class Y {\n" + |
104 |
JavadocWithInvalidReferences + |
110 |
INVALID_CLASS_JAVADOC_REF + |
105 |
" public class X_pub {}\n" + |
111 |
" public class X_pub {}\n" + |
106 |
JavadocWithInvalidReferences + |
112 |
INVALID_CLASS_JAVADOC_REF + |
107 |
" protected class X_prot {}\n" + |
113 |
" protected class X_prot {}\n" + |
108 |
JavadocWithInvalidReferences + |
114 |
INVALID_CLASS_JAVADOC_REF + |
109 |
" class X_pack {}\n" + |
115 |
" class X_pack {}\n" + |
110 |
JavadocWithInvalidReferences + |
116 |
INVALID_CLASS_JAVADOC_REF + |
111 |
" private class X_priv {}\n" + |
117 |
" private class X_priv {}\n" + |
112 |
"}\n" + |
118 |
"}\n" + |
113 |
"\n" |
119 |
"\n" |
114 |
}; |
120 |
}; |
115 |
private static String[] InvalidReferencesFieldJavadocComments = { |
121 |
private static String[] FIELDS_INVALID_COMMENT = { |
116 |
"X.java", |
122 |
"X.java", |
117 |
refClassForInvalidJavadoc, |
123 |
REF_CLASS, |
|
|
124 |
"X_dep.java", |
125 |
DEP_CLASS, |
118 |
"Y.java", |
126 |
"Y.java", |
119 |
"public class Y {\n" + |
127 |
"public class Y {\n" + |
120 |
JavadocWithInvalidReferences + |
128 |
INVALID_CLASS_JAVADOC_REF + |
121 |
" public int x_pub;\n" + |
129 |
" public int x_pub;\n" + |
122 |
JavadocWithInvalidReferences + |
130 |
INVALID_CLASS_JAVADOC_REF + |
123 |
" protected int x_prot;\n" + |
131 |
" protected int x_prot;\n" + |
124 |
JavadocWithInvalidReferences + |
132 |
INVALID_CLASS_JAVADOC_REF + |
125 |
" int x_pack;\n" + |
133 |
" int x_pack;\n" + |
126 |
JavadocWithInvalidReferences+ |
134 |
INVALID_CLASS_JAVADOC_REF+ |
127 |
" private int x_priv;\n" + |
135 |
" private int x_priv;\n" + |
128 |
"}\n" + |
136 |
"}\n" + |
129 |
"\n" |
137 |
"\n" |
130 |
}; |
138 |
}; |
131 |
private static String[] InvalidReferencesMethodJavadocComments = { |
139 |
private static String[] METHODS_INVALID_COMMENT = { |
132 |
"X.java", |
140 |
"X.java", |
133 |
refClassForInvalidJavadoc, |
141 |
REF_CLASS, |
|
|
142 |
"X_dep.java", |
143 |
DEP_CLASS, |
134 |
"Y.java", |
144 |
"Y.java", |
135 |
"public class Y {\n" + |
145 |
"public class Y {\n" + |
136 |
JavadocWithInvalidReferencesForMethod + |
146 |
INVALID_METHOD_JAVADOC_REF + |
137 |
" public void foo_pub(String str) throws IllegalArgumentException {}\n" + |
147 |
" public void foo_pub(String str) throws IllegalArgumentException {}\n" + |
138 |
JavadocWithInvalidReferencesForMethod + |
148 |
INVALID_METHOD_JAVADOC_REF + |
139 |
" protected void foo_pro(String str) throws IllegalArgumentException {}\n" + |
149 |
" protected void foo_pro(String str) throws IllegalArgumentException {}\n" + |
140 |
JavadocWithInvalidReferencesForMethod + |
150 |
INVALID_METHOD_JAVADOC_REF + |
141 |
" void foo_pack(String str) throws IllegalArgumentException {}\n" + |
151 |
" void foo_pack(String str) throws IllegalArgumentException {}\n" + |
142 |
JavadocWithInvalidReferencesForMethod + |
152 |
INVALID_METHOD_JAVADOC_REF + |
143 |
" private void foo_priv(String str) throws IllegalArgumentException {}\n" + |
153 |
" private void foo_priv(String str) throws IllegalArgumentException {}\n" + |
144 |
"}\n" + |
154 |
"}\n" + |
145 |
"\n" |
155 |
"\n" |
146 |
}; |
156 |
}; |
147 |
private static String[] InvalidReferencesConstructorJavadocComments = { |
157 |
private static String[] CONSTRUCTORS_INVALID_COMMENT = { |
148 |
"X.java", |
158 |
"X.java", |
149 |
refClassForInvalidJavadoc, |
159 |
REF_CLASS, |
|
|
160 |
"X_dep.java", |
161 |
DEP_CLASS, |
150 |
"Y.java", |
162 |
"Y.java", |
151 |
"public class Y {\n" + |
163 |
"public class Y {\n" + |
152 |
JavadocWithInvalidReferencesForMethod + |
164 |
INVALID_METHOD_JAVADOC_REF + |
153 |
" public Y(int str) {}\n" + |
165 |
" public Y(int str) {}\n" + |
154 |
JavadocWithInvalidReferencesForMethod + |
166 |
INVALID_METHOD_JAVADOC_REF + |
155 |
" protected Y(long str) {}\n" + |
167 |
" protected Y(long str) {}\n" + |
156 |
JavadocWithInvalidReferencesForMethod + |
168 |
INVALID_METHOD_JAVADOC_REF + |
157 |
" Y(float str) {}\n" + |
169 |
" Y(float str) {}\n" + |
158 |
JavadocWithInvalidReferencesForMethod + |
170 |
INVALID_METHOD_JAVADOC_REF + |
159 |
" private Y(double str) {}\n" + |
171 |
" private Y(double str) {}\n" + |
160 |
"}\n" + |
172 |
"}\n" + |
161 |
"\n" |
173 |
"\n" |
162 |
}; |
174 |
}; |
163 |
private static String[] MissingTags = { |
175 |
private static String[] MISSING_TAGS = { |
164 |
"X.java", |
176 |
"X.java", |
165 |
"public class X {\n" + |
177 |
"public class X {\n" + |
166 |
" // public\n" + |
178 |
" // public\n" + |
Lines 216-222
Link Here
|
216 |
" private int privateMethod(long l) { return 0;}\n" + |
228 |
" private int privateMethod(long l) { return 0;}\n" + |
217 |
"}\n" |
229 |
"}\n" |
218 |
}; |
230 |
}; |
219 |
private static String[] MissingComments = { |
231 |
private static String[] MISSING_COMMENTS = { |
220 |
"X.java", |
232 |
"X.java", |
221 |
"/** */\n" + |
233 |
"/** */\n" + |
222 |
"public class X {\n" + |
234 |
"public class X {\n" + |
Lines 254-264
Link Here
|
254 |
"}\n" |
266 |
"}\n" |
255 |
}; |
267 |
}; |
256 |
|
268 |
|
257 |
private static String[] resultForInvalidTagsClassOrField = { |
269 |
private static String[] CLASSES_ERRORS = { |
258 |
"1. ERROR in Y.java (at line 3)\n" + |
270 |
"1. ERROR in Y.java (at line 3)\n" + |
259 |
" * @see X.X_dep\n" + |
271 |
" * @see X_dep\n" + |
260 |
" ^^^^^^^\n" + |
272 |
" ^^^^^\n" + |
261 |
"Javadoc: The type X.X_dep is deprecated\n" + |
273 |
"Javadoc: The type X_dep is deprecated\n" + |
262 |
"----------\n" + |
274 |
"----------\n" + |
263 |
"2. ERROR in Y.java (at line 4)\n" + |
275 |
"2. ERROR in Y.java (at line 4)\n" + |
264 |
" * @see X.X_priv\n" + |
276 |
" * @see X.X_priv\n" + |
Lines 321-329
Link Here
|
321 |
"Javadoc: The method unknown() is undefined for the type X\n" + |
333 |
"Javadoc: The method unknown() is undefined for the type X\n" + |
322 |
"----------\n", |
334 |
"----------\n", |
323 |
"14. ERROR in Y.java (at line 19)\n" + |
335 |
"14. ERROR in Y.java (at line 19)\n" + |
324 |
" * @see X.X_dep\n" + |
336 |
" * @see X_dep\n" + |
325 |
" ^^^^^^^\n" + |
337 |
" ^^^^^\n" + |
326 |
"Javadoc: The type X.X_dep is deprecated\n" + |
338 |
"Javadoc: The type X_dep is deprecated\n" + |
327 |
"----------\n" + |
339 |
"----------\n" + |
328 |
"15. ERROR in Y.java (at line 20)\n" + |
340 |
"15. ERROR in Y.java (at line 20)\n" + |
329 |
" * @see X.X_priv\n" + |
341 |
" * @see X.X_priv\n" + |
Lines 386-394
Link Here
|
386 |
"Javadoc: The method unknown() is undefined for the type X\n" + |
398 |
"Javadoc: The method unknown() is undefined for the type X\n" + |
387 |
"----------\n", |
399 |
"----------\n", |
388 |
"27. ERROR in Y.java (at line 35)\n" + |
400 |
"27. ERROR in Y.java (at line 35)\n" + |
389 |
" * @see X.X_dep\n" + |
401 |
" * @see X_dep\n" + |
390 |
" ^^^^^^^\n" + |
402 |
" ^^^^^\n" + |
391 |
"Javadoc: The type X.X_dep is deprecated\n" + |
403 |
"Javadoc: The type X_dep is deprecated\n" + |
392 |
"----------\n" + |
404 |
"----------\n" + |
393 |
"28. ERROR in Y.java (at line 36)\n" + |
405 |
"28. ERROR in Y.java (at line 36)\n" + |
394 |
" * @see X.X_priv\n" + |
406 |
" * @see X.X_priv\n" + |
Lines 451-459
Link Here
|
451 |
"Javadoc: The method unknown() is undefined for the type X\n" + |
463 |
"Javadoc: The method unknown() is undefined for the type X\n" + |
452 |
"----------\n", |
464 |
"----------\n", |
453 |
"40. ERROR in Y.java (at line 51)\n" + |
465 |
"40. ERROR in Y.java (at line 51)\n" + |
454 |
" * @see X.X_dep\n" + |
466 |
" * @see X_dep\n" + |
455 |
" ^^^^^^^\n" + |
467 |
" ^^^^^\n" + |
456 |
"Javadoc: The type X.X_dep is deprecated\n" + |
468 |
"Javadoc: The type X_dep is deprecated\n" + |
457 |
"----------\n" + |
469 |
"----------\n" + |
458 |
"41. ERROR in Y.java (at line 52)\n" + |
470 |
"41. ERROR in Y.java (at line 52)\n" + |
459 |
" * @see X.X_priv\n" + |
471 |
" * @see X.X_priv\n" + |
Lines 517-523
Link Here
|
517 |
"----------\n" |
529 |
"----------\n" |
518 |
}; |
530 |
}; |
519 |
|
531 |
|
520 |
private static String[] resultForInvalidTagsMethodOrConstructor = { |
532 |
private static String[] METHODS_ERRORS = { |
521 |
"1. ERROR in Y.java (at line 4)\n" + |
533 |
"1. ERROR in Y.java (at line 4)\n" + |
522 |
" * @param str\n" + |
534 |
" * @param str\n" + |
523 |
" ^^^\n" + |
535 |
" ^^^\n" + |
Lines 539-547
Link Here
|
539 |
"Javadoc: Unknown cannot be resolved to a type\n" + |
551 |
"Javadoc: Unknown cannot be resolved to a type\n" + |
540 |
"----------\n" + |
552 |
"----------\n" + |
541 |
"5. ERROR in Y.java (at line 10)\n" + |
553 |
"5. ERROR in Y.java (at line 10)\n" + |
542 |
" * @see X.X_dep\n" + |
554 |
" * @see X_dep\n" + |
543 |
" ^^^^^^^\n" + |
555 |
" ^^^^^\n" + |
544 |
"Javadoc: The type X.X_dep is deprecated\n" + |
556 |
"Javadoc: The type X_dep is deprecated\n" + |
545 |
"----------\n" + |
557 |
"----------\n" + |
546 |
"6. ERROR in Y.java (at line 11)\n" + |
558 |
"6. ERROR in Y.java (at line 11)\n" + |
547 |
" * @see X.X_priv\n" + |
559 |
" * @see X.X_priv\n" + |
Lines 624-632
Link Here
|
624 |
"Javadoc: Unknown cannot be resolved to a type\n" + |
636 |
"Javadoc: Unknown cannot be resolved to a type\n" + |
625 |
"----------\n" + |
637 |
"----------\n" + |
626 |
"22. ERROR in Y.java (at line 33)\n" + |
638 |
"22. ERROR in Y.java (at line 33)\n" + |
627 |
" * @see X.X_dep\n" + |
639 |
" * @see X_dep\n" + |
628 |
" ^^^^^^^\n" + |
640 |
" ^^^^^\n" + |
629 |
"Javadoc: The type X.X_dep is deprecated\n" + |
641 |
"Javadoc: The type X_dep is deprecated\n" + |
630 |
"----------\n" + |
642 |
"----------\n" + |
631 |
"23. ERROR in Y.java (at line 34)\n" + |
643 |
"23. ERROR in Y.java (at line 34)\n" + |
632 |
" * @see X.X_priv\n" + |
644 |
" * @see X.X_priv\n" + |
Lines 709-717
Link Here
|
709 |
"Javadoc: Unknown cannot be resolved to a type\n" + |
721 |
"Javadoc: Unknown cannot be resolved to a type\n" + |
710 |
"----------\n" + |
722 |
"----------\n" + |
711 |
"39. ERROR in Y.java (at line 56)\n" + |
723 |
"39. ERROR in Y.java (at line 56)\n" + |
712 |
" * @see X.X_dep\n" + |
724 |
" * @see X_dep\n" + |
713 |
" ^^^^^^^\n" + |
725 |
" ^^^^^\n" + |
714 |
"Javadoc: The type X.X_dep is deprecated\n" + |
726 |
"Javadoc: The type X_dep is deprecated\n" + |
715 |
"----------\n" + |
727 |
"----------\n" + |
716 |
"40. ERROR in Y.java (at line 57)\n" + |
728 |
"40. ERROR in Y.java (at line 57)\n" + |
717 |
" * @see X.X_priv\n" + |
729 |
" * @see X.X_priv\n" + |
Lines 794-802
Link Here
|
794 |
"Javadoc: Unknown cannot be resolved to a type\n" + |
806 |
"Javadoc: Unknown cannot be resolved to a type\n" + |
795 |
"----------\n" + |
807 |
"----------\n" + |
796 |
"56. ERROR in Y.java (at line 79)\n" + |
808 |
"56. ERROR in Y.java (at line 79)\n" + |
797 |
" * @see X.X_dep\n" + |
809 |
" * @see X_dep\n" + |
798 |
" ^^^^^^^\n" + |
810 |
" ^^^^^\n" + |
799 |
"Javadoc: The type X.X_dep is deprecated\n" + |
811 |
"Javadoc: The type X_dep is deprecated\n" + |
800 |
"----------\n" + |
812 |
"----------\n" + |
801 |
"57. ERROR in Y.java (at line 80)\n" + |
813 |
"57. ERROR in Y.java (at line 80)\n" + |
802 |
" * @see X.X_priv\n" + |
814 |
" * @see X.X_priv\n" + |
Lines 864-876
Link Here
|
864 |
if (reportInvalidJavadocTagsDeprecatedRef == null && reportInvalidJavadocTagsNotVisibleRef == null) { |
876 |
if (reportInvalidJavadocTagsDeprecatedRef == null && reportInvalidJavadocTagsNotVisibleRef == null) { |
865 |
String result = "----------\n"; |
877 |
String result = "----------\n"; |
866 |
for (int i=0; i<=visibility; i++) { |
878 |
for (int i=0; i<=visibility; i++) { |
867 |
result += resultForInvalidTagsClassOrField[i]; |
879 |
result += CLASSES_ERRORS[i]; |
868 |
} |
880 |
} |
869 |
return result; |
881 |
return result; |
870 |
} |
882 |
} |
871 |
StringBuffer result = new StringBuffer("----------\n"); |
883 |
StringBuffer result = new StringBuffer("----------\n"); |
872 |
for (int i=0, count=1; i<= visibility; i++) { |
884 |
for (int i=0, count=1; i<= visibility; i++) { |
873 |
StringTokenizer tokenizer = new StringTokenizer(resultForInvalidTagsClassOrField[i], "\n"); |
885 |
StringTokenizer tokenizer = new StringTokenizer(CLASSES_ERRORS[i], "\n"); |
874 |
while (tokenizer.hasMoreTokens()) { |
886 |
while (tokenizer.hasMoreTokens()) { |
875 |
StringBuffer error = new StringBuffer(); |
887 |
StringBuffer error = new StringBuffer(); |
876 |
boolean add = true; |
888 |
boolean add = true; |
Lines 886-892
Link Here
|
886 |
add = line.indexOf("is deprecated") == -1; |
898 |
add = line.indexOf("is deprecated") == -1; |
887 |
} |
899 |
} |
888 |
if (add && CompilerOptions.DISABLED.equals(reportInvalidJavadocTagsNotVisibleRef)) { |
900 |
if (add && CompilerOptions.DISABLED.equals(reportInvalidJavadocTagsNotVisibleRef)) { |
889 |
add = line.indexOf("is not visible") == -1; |
901 |
add = line.indexOf("is not visible") == -1 && line.indexOf("in generated documentation") == -1; |
890 |
} |
902 |
} |
891 |
default: |
903 |
default: |
892 |
error.append(line); |
904 |
error.append(line); |
Lines 906-918
Link Here
|
906 |
if (reportInvalidJavadocTagsDeprecatedRef == null && reportInvalidJavadocTagsNotVisibleRef == null) { |
918 |
if (reportInvalidJavadocTagsDeprecatedRef == null && reportInvalidJavadocTagsNotVisibleRef == null) { |
907 |
String result = "----------\n"; |
919 |
String result = "----------\n"; |
908 |
for (int i=0; i<=visibility; i++) { |
920 |
for (int i=0; i<=visibility; i++) { |
909 |
result += resultForInvalidTagsMethodOrConstructor[i]; |
921 |
result += METHODS_ERRORS[i]; |
910 |
} |
922 |
} |
911 |
return result; |
923 |
return result; |
912 |
} |
924 |
} |
913 |
StringBuffer result = new StringBuffer("----------\n"); |
925 |
StringBuffer result = new StringBuffer("----------\n"); |
914 |
for (int i=0, count=1; i<= visibility; i++) { |
926 |
for (int i=0, count=1; i<= visibility; i++) { |
915 |
StringTokenizer tokenizer = new StringTokenizer(resultForInvalidTagsMethodOrConstructor[i], "\n"); |
927 |
StringTokenizer tokenizer = new StringTokenizer(METHODS_ERRORS[i], "\n"); |
916 |
while (tokenizer.hasMoreTokens()) { |
928 |
while (tokenizer.hasMoreTokens()) { |
917 |
StringBuffer error = new StringBuffer(); |
929 |
StringBuffer error = new StringBuffer(); |
918 |
boolean add = true; |
930 |
boolean add = true; |
Lines 928-934
Link Here
|
928 |
add = line.indexOf("is deprecated") == -1; |
940 |
add = line.indexOf("is deprecated") == -1; |
929 |
} |
941 |
} |
930 |
if (add && CompilerOptions.DISABLED.equals(reportInvalidJavadocTagsNotVisibleRef)) { |
942 |
if (add && CompilerOptions.DISABLED.equals(reportInvalidJavadocTagsNotVisibleRef)) { |
931 |
add = line.indexOf("is not visible") == -1; |
943 |
add = line.indexOf("is not visible") == -1 && line.indexOf("in generated documentation") == -1; |
932 |
} |
944 |
} |
933 |
default: |
945 |
default: |
934 |
error.append(line); |
946 |
error.append(line); |
Lines 1302-1320
Link Here
|
1302 |
*/ |
1314 |
*/ |
1303 |
public void testInvalidTagsClassNoSupport() { |
1315 |
public void testInvalidTagsClassNoSupport() { |
1304 |
docCommentSupport = CompilerOptions.DISABLED; |
1316 |
docCommentSupport = CompilerOptions.DISABLED; |
1305 |
runConformTest(InvalidReferencesClassJavadocComments); |
1317 |
runConformTest(CLASSES_INVALID_COMMENT); |
1306 |
} |
1318 |
} |
1307 |
public void testInvalidTagsFieldNoSupport() { |
1319 |
public void testInvalidTagsFieldNoSupport() { |
1308 |
docCommentSupport = CompilerOptions.DISABLED; |
1320 |
docCommentSupport = CompilerOptions.DISABLED; |
1309 |
runConformTest(InvalidReferencesFieldJavadocComments); |
1321 |
runConformTest(FIELDS_INVALID_COMMENT); |
1310 |
} |
1322 |
} |
1311 |
public void testInvalidTagsMethodNoSupport() { |
1323 |
public void testInvalidTagsMethodNoSupport() { |
1312 |
docCommentSupport = CompilerOptions.DISABLED; |
1324 |
docCommentSupport = CompilerOptions.DISABLED; |
1313 |
runConformTest(InvalidReferencesMethodJavadocComments); |
1325 |
runConformTest(METHODS_INVALID_COMMENT); |
1314 |
} |
1326 |
} |
1315 |
public void testInvalidTagsConstructorNoSupport() { |
1327 |
public void testInvalidTagsConstructorNoSupport() { |
1316 |
docCommentSupport = CompilerOptions.DISABLED; |
1328 |
docCommentSupport = CompilerOptions.DISABLED; |
1317 |
runConformTest(InvalidReferencesConstructorJavadocComments); |
1329 |
runConformTest(CONSTRUCTORS_INVALID_COMMENT); |
1318 |
} |
1330 |
} |
1319 |
|
1331 |
|
1320 |
/* |
1332 |
/* |
Lines 1322-1359
Link Here
|
1322 |
*/ |
1334 |
*/ |
1323 |
// Test default invalid javadoc (means "ignore" with tags"disabled" and visibility "public") |
1335 |
// Test default invalid javadoc (means "ignore" with tags"disabled" and visibility "public") |
1324 |
public void testInvalidTagsClassDefaults() { |
1336 |
public void testInvalidTagsClassDefaults() { |
1325 |
runConformTest(InvalidReferencesClassJavadocComments); |
1337 |
runConformTest(CLASSES_INVALID_COMMENT); |
1326 |
} |
1338 |
} |
1327 |
public void testInvalidTagsFieldDefaults() { |
1339 |
public void testInvalidTagsFieldDefaults() { |
1328 |
runConformTest(InvalidReferencesFieldJavadocComments); |
1340 |
runConformTest(FIELDS_INVALID_COMMENT); |
1329 |
} |
1341 |
} |
1330 |
public void testInvalidTagsMethodDefaults() { |
1342 |
public void testInvalidTagsMethodDefaults() { |
1331 |
runConformTest(InvalidReferencesMethodJavadocComments); |
1343 |
runConformTest(METHODS_INVALID_COMMENT); |
1332 |
} |
1344 |
} |
1333 |
public void testInvalidTagsConstructorDefaults() { |
1345 |
public void testInvalidTagsConstructorDefaults() { |
1334 |
runConformTest(InvalidReferencesConstructorJavadocComments); |
1346 |
runConformTest(CONSTRUCTORS_INVALID_COMMENT); |
1335 |
} |
1347 |
} |
1336 |
|
1348 |
|
1337 |
// Test invalid javadoc "error" + tags "disabled" and visibility "public" |
1349 |
// Test invalid javadoc "error" + tags "disabled" and visibility "public" |
1338 |
public void testInvalidTagsClassErrorNotags() { |
1350 |
public void testInvalidTagsClassErrorNotags() { |
1339 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1351 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1340 |
reportInvalidJavadocTags = CompilerOptions.DISABLED; |
1352 |
reportInvalidJavadocTags = CompilerOptions.DISABLED; |
1341 |
runConformTest(InvalidReferencesClassJavadocComments); |
1353 |
runConformTest(CLASSES_INVALID_COMMENT); |
1342 |
} |
1354 |
} |
1343 |
public void testInvalidTagsFieldErrorNotags() { |
1355 |
public void testInvalidTagsFieldErrorNotags() { |
1344 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1356 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1345 |
reportInvalidJavadocTags = CompilerOptions.DISABLED; |
1357 |
reportInvalidJavadocTags = CompilerOptions.DISABLED; |
1346 |
runConformTest(InvalidReferencesFieldJavadocComments); |
1358 |
runConformTest(FIELDS_INVALID_COMMENT); |
1347 |
} |
1359 |
} |
1348 |
public void testInvalidTagsMethodErrorNotags() { |
1360 |
public void testInvalidTagsMethodErrorNotags() { |
1349 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1361 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1350 |
reportInvalidJavadocTags = CompilerOptions.DISABLED; |
1362 |
reportInvalidJavadocTags = CompilerOptions.DISABLED; |
1351 |
runConformTest(InvalidReferencesMethodJavadocComments); |
1363 |
runConformTest(METHODS_INVALID_COMMENT); |
1352 |
} |
1364 |
} |
1353 |
public void testInvalidTagsConstructorErrorNotags() { |
1365 |
public void testInvalidTagsConstructorErrorNotags() { |
1354 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1366 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1355 |
reportInvalidJavadocTags = CompilerOptions.DISABLED; |
1367 |
reportInvalidJavadocTags = CompilerOptions.DISABLED; |
1356 |
runConformTest(InvalidReferencesConstructorJavadocComments); |
1368 |
runConformTest(CONSTRUCTORS_INVALID_COMMENT); |
1357 |
} |
1369 |
} |
1358 |
|
1370 |
|
1359 |
// Test invalid javadoc "error" + tags "enabled" and visibility "public" |
1371 |
// Test invalid javadoc "error" + tags "enabled" and visibility "public" |
Lines 1361-1385
Link Here
|
1361 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1373 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1362 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1374 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1363 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1375 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1364 |
runNegativeTest(InvalidReferencesClassJavadocComments, resultForInvalidTagsClassOrField(PUBLIC_VISIBILITY)); |
1376 |
runNegativeTest(CLASSES_INVALID_COMMENT, resultForInvalidTagsClassOrField(PUBLIC_VISIBILITY)); |
1365 |
} |
1377 |
} |
1366 |
public void testInvalidTagsFieldErrorTagsPublic() { |
1378 |
public void testInvalidTagsFieldErrorTagsPublic() { |
1367 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1379 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1368 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1380 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1369 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1381 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1370 |
runNegativeTest(InvalidReferencesFieldJavadocComments, resultForInvalidTagsClassOrField(PUBLIC_VISIBILITY)); |
1382 |
runNegativeTest(FIELDS_INVALID_COMMENT, resultForInvalidTagsClassOrField(PUBLIC_VISIBILITY)); |
1371 |
} |
1383 |
} |
1372 |
public void testInvalidTagsMethodErrorTagsPublic() { |
1384 |
public void testInvalidTagsMethodErrorTagsPublic() { |
1373 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1385 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1374 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1386 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1375 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1387 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1376 |
runNegativeTest(InvalidReferencesMethodJavadocComments, resultForInvalidTagsMethodOrConstructor(PUBLIC_VISIBILITY)); |
1388 |
runNegativeTest(METHODS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(PUBLIC_VISIBILITY)); |
1377 |
} |
1389 |
} |
1378 |
public void testInvalidTagsConstructorErrorTagsPublic() { |
1390 |
public void testInvalidTagsConstructorErrorTagsPublic() { |
1379 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1391 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1380 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1392 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1381 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1393 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1382 |
runNegativeTest(InvalidReferencesConstructorJavadocComments, resultForInvalidTagsMethodOrConstructor(PUBLIC_VISIBILITY)); |
1394 |
runNegativeTest(CONSTRUCTORS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(PUBLIC_VISIBILITY)); |
1383 |
} |
1395 |
} |
1384 |
|
1396 |
|
1385 |
// Test invalid javadoc "error" + tags "enabled" and visibility "protected" |
1397 |
// Test invalid javadoc "error" + tags "enabled" and visibility "protected" |
Lines 1387-1411
Link Here
|
1387 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1399 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1388 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1400 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1389 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1401 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1390 |
runNegativeTest(InvalidReferencesClassJavadocComments, resultForInvalidTagsClassOrField(PROTECTED_VISIBILITY)); |
1402 |
runNegativeTest(CLASSES_INVALID_COMMENT, resultForInvalidTagsClassOrField(PROTECTED_VISIBILITY)); |
1391 |
} |
1403 |
} |
1392 |
public void testInvalidTagsFieldErrorTagsProtected() { |
1404 |
public void testInvalidTagsFieldErrorTagsProtected() { |
1393 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1405 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1394 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1406 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1395 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1407 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1396 |
runNegativeTest(InvalidReferencesFieldJavadocComments, resultForInvalidTagsClassOrField(PROTECTED_VISIBILITY)); |
1408 |
runNegativeTest(FIELDS_INVALID_COMMENT, resultForInvalidTagsClassOrField(PROTECTED_VISIBILITY)); |
1397 |
} |
1409 |
} |
1398 |
public void testInvalidTagsMethodErrorTagsProtected() { |
1410 |
public void testInvalidTagsMethodErrorTagsProtected() { |
1399 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1411 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1400 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1412 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1401 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1413 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1402 |
runNegativeTest(InvalidReferencesMethodJavadocComments, resultForInvalidTagsMethodOrConstructor(PROTECTED_VISIBILITY)); |
1414 |
runNegativeTest(METHODS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(PROTECTED_VISIBILITY)); |
1403 |
} |
1415 |
} |
1404 |
public void testInvalidTagsConstructorErrorTagsProtected() { |
1416 |
public void testInvalidTagsConstructorErrorTagsProtected() { |
1405 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1417 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1406 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1418 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1407 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1419 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1408 |
runNegativeTest(InvalidReferencesConstructorJavadocComments, resultForInvalidTagsMethodOrConstructor(PROTECTED_VISIBILITY)); |
1420 |
runNegativeTest(CONSTRUCTORS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(PROTECTED_VISIBILITY)); |
1409 |
} |
1421 |
} |
1410 |
|
1422 |
|
1411 |
// Test invalid javadoc "error" + tags "enabled" and visibility "default" |
1423 |
// Test invalid javadoc "error" + tags "enabled" and visibility "default" |
Lines 1413-1455
Link Here
|
1413 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1425 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1414 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1426 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1415 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1427 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1416 |
runNegativeTest(InvalidReferencesClassJavadocComments, resultForInvalidTagsClassOrField(DEFAULT_VISIBILITY)); |
1428 |
runNegativeTest(CLASSES_INVALID_COMMENT, resultForInvalidTagsClassOrField(DEFAULT_VISIBILITY)); |
1417 |
} |
1429 |
} |
1418 |
public void testInvalidTagsFieldErrorTagsPackage() { |
1430 |
public void testInvalidTagsFieldErrorTagsPackage() { |
1419 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1431 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1420 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1432 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1421 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1433 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1422 |
runNegativeTest(InvalidReferencesFieldJavadocComments, resultForInvalidTagsClassOrField(DEFAULT_VISIBILITY)); |
1434 |
runNegativeTest(FIELDS_INVALID_COMMENT, resultForInvalidTagsClassOrField(DEFAULT_VISIBILITY)); |
1423 |
} |
1435 |
} |
1424 |
public void testInvalidTagsMethodErrorTagsPackage() { |
1436 |
public void testInvalidTagsMethodErrorTagsPackage() { |
1425 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1437 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1426 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1438 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1427 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1439 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1428 |
runNegativeTest(InvalidReferencesMethodJavadocComments, resultForInvalidTagsMethodOrConstructor(DEFAULT_VISIBILITY)); |
1440 |
runNegativeTest(METHODS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(DEFAULT_VISIBILITY)); |
1429 |
} |
1441 |
} |
1430 |
public void testInvalidTagsConstructorErrorTagsPackage() { |
1442 |
public void testInvalidTagsConstructorErrorTagsPackage() { |
1431 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1443 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1432 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1444 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1433 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1445 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1434 |
runNegativeTest(InvalidReferencesConstructorJavadocComments, resultForInvalidTagsMethodOrConstructor(DEFAULT_VISIBILITY)); |
1446 |
runNegativeTest(CONSTRUCTORS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(DEFAULT_VISIBILITY)); |
1435 |
} |
1447 |
} |
1436 |
|
1448 |
|
1437 |
// Test invalid javadoc "error" + tags "enabled" and visibility "private" |
1449 |
// Test invalid javadoc "error" + tags "enabled" and visibility "private" |
1438 |
public void testInvalidTagsClassErrorTagsPrivate() { |
1450 |
public void testInvalidTagsClassErrorTagsPrivate() { |
1439 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1451 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1440 |
runNegativeTest(InvalidReferencesClassJavadocComments, resultForInvalidTagsClassOrField(PRIVATE_VISIBILITY)); |
1452 |
runNegativeTest(CLASSES_INVALID_COMMENT, resultForInvalidTagsClassOrField(PRIVATE_VISIBILITY)); |
1441 |
} |
1453 |
} |
1442 |
public void testInvalidTagsFieldErrorTagsPrivate() { |
1454 |
public void testInvalidTagsFieldErrorTagsPrivate() { |
1443 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1455 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1444 |
runNegativeTest(InvalidReferencesFieldJavadocComments, resultForInvalidTagsClassOrField(PRIVATE_VISIBILITY)); |
1456 |
runNegativeTest(FIELDS_INVALID_COMMENT, resultForInvalidTagsClassOrField(PRIVATE_VISIBILITY)); |
1445 |
} |
1457 |
} |
1446 |
public void testInvalidTagsMethodErrorTagsPrivate() { |
1458 |
public void testInvalidTagsMethodErrorTagsPrivate() { |
1447 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1459 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1448 |
runNegativeTest(InvalidReferencesMethodJavadocComments, resultForInvalidTagsMethodOrConstructor(PRIVATE_VISIBILITY)); |
1460 |
runNegativeTest(METHODS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(PRIVATE_VISIBILITY)); |
1449 |
} |
1461 |
} |
1450 |
public void testInvalidTagsConstructorErrorTagsPrivate() { |
1462 |
public void testInvalidTagsConstructorErrorTagsPrivate() { |
1451 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1463 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1452 |
runNegativeTest(InvalidReferencesConstructorJavadocComments, resultForInvalidTagsMethodOrConstructor(PRIVATE_VISIBILITY)); |
1464 |
runNegativeTest(CONSTRUCTORS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(PRIVATE_VISIBILITY)); |
1453 |
} |
1465 |
} |
1454 |
|
1466 |
|
1455 |
// Test invalid javadoc "error" + tags "enabled" but invalid deprecated references "disabled" and visibility "public" |
1467 |
// Test invalid javadoc "error" + tags "enabled" but invalid deprecated references "disabled" and visibility "public" |
Lines 1458-1485
Link Here
|
1458 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1470 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1459 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1471 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1460 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1472 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1461 |
runNegativeTest(InvalidReferencesClassJavadocComments, resultForInvalidTagsClassOrField(PUBLIC_VISIBILITY)); |
1473 |
runNegativeTest(CLASSES_INVALID_COMMENT, resultForInvalidTagsClassOrField(PUBLIC_VISIBILITY)); |
1462 |
} |
1474 |
} |
1463 |
public void testInvalidTagsDeprecatedRefFieldErrorTagsPublic() { |
1475 |
public void testInvalidTagsDeprecatedRefFieldErrorTagsPublic() { |
1464 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1476 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1465 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1477 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1466 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1478 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1467 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1479 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1468 |
runNegativeTest(InvalidReferencesFieldJavadocComments, resultForInvalidTagsClassOrField(PUBLIC_VISIBILITY)); |
1480 |
runNegativeTest(FIELDS_INVALID_COMMENT, resultForInvalidTagsClassOrField(PUBLIC_VISIBILITY)); |
1469 |
} |
1481 |
} |
1470 |
public void testInvalidTagsDeprecatedRefMethodErrorTagsPublic() { |
1482 |
public void testInvalidTagsDeprecatedRefMethodErrorTagsPublic() { |
1471 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1483 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1472 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1484 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1473 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1485 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1474 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1486 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1475 |
runNegativeTest(InvalidReferencesMethodJavadocComments, resultForInvalidTagsMethodOrConstructor(PUBLIC_VISIBILITY)); |
1487 |
runNegativeTest(METHODS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(PUBLIC_VISIBILITY)); |
1476 |
} |
1488 |
} |
1477 |
public void testInvalidTagsDeprecatedRefConstructorErrorTagsPublic() { |
1489 |
public void testInvalidTagsDeprecatedRefConstructorErrorTagsPublic() { |
1478 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1490 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1479 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1491 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1480 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1492 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1481 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1493 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1482 |
runNegativeTest(InvalidReferencesConstructorJavadocComments, resultForInvalidTagsMethodOrConstructor(PUBLIC_VISIBILITY)); |
1494 |
runNegativeTest(CONSTRUCTORS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(PUBLIC_VISIBILITY)); |
1483 |
} |
1495 |
} |
1484 |
|
1496 |
|
1485 |
// Test invalid javadoc "error" + tags "enabled" but invalid deprecated references "disabled" visibility "protected" |
1497 |
// Test invalid javadoc "error" + tags "enabled" but invalid deprecated references "disabled" visibility "protected" |
Lines 1488-1515
Link Here
|
1488 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1500 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1489 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1501 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1490 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1502 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1491 |
runNegativeTest(InvalidReferencesClassJavadocComments, resultForInvalidTagsClassOrField(PROTECTED_VISIBILITY)); |
1503 |
runNegativeTest(CLASSES_INVALID_COMMENT, resultForInvalidTagsClassOrField(PROTECTED_VISIBILITY)); |
1492 |
} |
1504 |
} |
1493 |
public void testInvalidTagsDeprecatedRefFieldErrorTagsProtected() { |
1505 |
public void testInvalidTagsDeprecatedRefFieldErrorTagsProtected() { |
1494 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1506 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1495 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1507 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1496 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1508 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1497 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1509 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1498 |
runNegativeTest(InvalidReferencesFieldJavadocComments, resultForInvalidTagsClassOrField(PROTECTED_VISIBILITY)); |
1510 |
runNegativeTest(FIELDS_INVALID_COMMENT, resultForInvalidTagsClassOrField(PROTECTED_VISIBILITY)); |
1499 |
} |
1511 |
} |
1500 |
public void testInvalidTagsDeprecatedRefMethodErrorTagsProtected() { |
1512 |
public void testInvalidTagsDeprecatedRefMethodErrorTagsProtected() { |
1501 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1513 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1502 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1514 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1503 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1515 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1504 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1516 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1505 |
runNegativeTest(InvalidReferencesMethodJavadocComments, resultForInvalidTagsMethodOrConstructor(PROTECTED_VISIBILITY)); |
1517 |
runNegativeTest(METHODS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(PROTECTED_VISIBILITY)); |
1506 |
} |
1518 |
} |
1507 |
public void testInvalidTagsDeprecatedRefConstructorErrorTagsProtected() { |
1519 |
public void testInvalidTagsDeprecatedRefConstructorErrorTagsProtected() { |
1508 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1520 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1509 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1521 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1510 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1522 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1511 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1523 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1512 |
runNegativeTest(InvalidReferencesConstructorJavadocComments, resultForInvalidTagsMethodOrConstructor(PROTECTED_VISIBILITY)); |
1524 |
runNegativeTest(CONSTRUCTORS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(PROTECTED_VISIBILITY)); |
1513 |
} |
1525 |
} |
1514 |
|
1526 |
|
1515 |
// Test invalid javadoc "error" + tags "enabled" but invalid deprecated references "disabled" and visibility "default" |
1527 |
// Test invalid javadoc "error" + tags "enabled" but invalid deprecated references "disabled" and visibility "default" |
Lines 1518-1567
Link Here
|
1518 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1530 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1519 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1531 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1520 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1532 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1521 |
runNegativeTest(InvalidReferencesClassJavadocComments, resultForInvalidTagsClassOrField(DEFAULT_VISIBILITY)); |
1533 |
runNegativeTest(CLASSES_INVALID_COMMENT, resultForInvalidTagsClassOrField(DEFAULT_VISIBILITY)); |
1522 |
} |
1534 |
} |
1523 |
public void testInvalidTagsDeprecatedRefFieldErrorTagsPackage() { |
1535 |
public void testInvalidTagsDeprecatedRefFieldErrorTagsPackage() { |
1524 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1536 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1525 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1537 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1526 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1538 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1527 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1539 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1528 |
runNegativeTest(InvalidReferencesFieldJavadocComments, resultForInvalidTagsClassOrField(DEFAULT_VISIBILITY)); |
1540 |
runNegativeTest(FIELDS_INVALID_COMMENT, resultForInvalidTagsClassOrField(DEFAULT_VISIBILITY)); |
1529 |
} |
1541 |
} |
1530 |
public void testInvalidTagsDeprecatedRefMethodErrorTagsPackage() { |
1542 |
public void testInvalidTagsDeprecatedRefMethodErrorTagsPackage() { |
1531 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1543 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1532 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1544 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1533 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1545 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1534 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1546 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1535 |
runNegativeTest(InvalidReferencesMethodJavadocComments, resultForInvalidTagsMethodOrConstructor(DEFAULT_VISIBILITY)); |
1547 |
runNegativeTest(METHODS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(DEFAULT_VISIBILITY)); |
1536 |
} |
1548 |
} |
1537 |
public void testInvalidTagsDeprecatedRefConstructorErrorTagsPackage() { |
1549 |
public void testInvalidTagsDeprecatedRefConstructorErrorTagsPackage() { |
1538 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1550 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1539 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1551 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1540 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1552 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1541 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1553 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1542 |
runNegativeTest(InvalidReferencesConstructorJavadocComments, resultForInvalidTagsMethodOrConstructor(DEFAULT_VISIBILITY)); |
1554 |
runNegativeTest(CONSTRUCTORS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(DEFAULT_VISIBILITY)); |
1543 |
} |
1555 |
} |
1544 |
|
1556 |
|
1545 |
// Test invalid javadoc "error" + tags "enabled" but invalid deprecated references "disabled" and visibility "private" |
1557 |
// Test invalid javadoc "error" + tags "enabled" but invalid deprecated references "disabled" and visibility "private" |
1546 |
public void testInvalidTagsDeprecatedRefClassErrorTagsPrivate() { |
1558 |
public void testInvalidTagsDeprecatedRefClassErrorTagsPrivate() { |
1547 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1559 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1548 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1560 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1549 |
runNegativeTest(InvalidReferencesClassJavadocComments, resultForInvalidTagsClassOrField(PRIVATE_VISIBILITY)); |
1561 |
runNegativeTest(CLASSES_INVALID_COMMENT, resultForInvalidTagsClassOrField(PRIVATE_VISIBILITY)); |
1550 |
} |
1562 |
} |
1551 |
public void testInvalidTagsDeprecatedRefFieldErrorTagsPrivate() { |
1563 |
public void testInvalidTagsDeprecatedRefFieldErrorTagsPrivate() { |
1552 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1564 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1553 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1565 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1554 |
runNegativeTest(InvalidReferencesFieldJavadocComments, resultForInvalidTagsClassOrField(PRIVATE_VISIBILITY)); |
1566 |
runNegativeTest(FIELDS_INVALID_COMMENT, resultForInvalidTagsClassOrField(PRIVATE_VISIBILITY)); |
1555 |
} |
1567 |
} |
1556 |
public void testInvalidTagsDeprecatedRefMethodErrorTagsPrivate() { |
1568 |
public void testInvalidTagsDeprecatedRefMethodErrorTagsPrivate() { |
1557 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1569 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1558 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1570 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1559 |
runNegativeTest(InvalidReferencesMethodJavadocComments, resultForInvalidTagsMethodOrConstructor(PRIVATE_VISIBILITY)); |
1571 |
runNegativeTest(METHODS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(PRIVATE_VISIBILITY)); |
1560 |
} |
1572 |
} |
1561 |
public void testInvalidTagsDeprecatedRefConstructorErrorTagsPrivate() { |
1573 |
public void testInvalidTagsDeprecatedRefConstructorErrorTagsPrivate() { |
1562 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1574 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1563 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1575 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1564 |
runNegativeTest(InvalidReferencesConstructorJavadocComments, resultForInvalidTagsMethodOrConstructor(PRIVATE_VISIBILITY)); |
1576 |
runNegativeTest(CONSTRUCTORS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(PRIVATE_VISIBILITY)); |
1565 |
} |
1577 |
} |
1566 |
|
1578 |
|
1567 |
// Test invalid javadoc "error" + tags "enabled" but invalid not visible references "disabled" and visibility "public" |
1579 |
// Test invalid javadoc "error" + tags "enabled" but invalid not visible references "disabled" and visibility "public" |
Lines 1570-1597
Link Here
|
1570 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1582 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1571 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1583 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1572 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1584 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1573 |
runNegativeTest(InvalidReferencesClassJavadocComments, resultForInvalidTagsClassOrField(PUBLIC_VISIBILITY)); |
1585 |
runNegativeTest(CLASSES_INVALID_COMMENT, resultForInvalidTagsClassOrField(PUBLIC_VISIBILITY)); |
1574 |
} |
1586 |
} |
1575 |
public void testInvalidTagsNotVisibleRefFieldErrorTagsPublic() { |
1587 |
public void testInvalidTagsNotVisibleRefFieldErrorTagsPublic() { |
1576 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1588 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1577 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1589 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1578 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1590 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1579 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1591 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1580 |
runNegativeTest(InvalidReferencesFieldJavadocComments, resultForInvalidTagsClassOrField(PUBLIC_VISIBILITY)); |
1592 |
runNegativeTest(FIELDS_INVALID_COMMENT, resultForInvalidTagsClassOrField(PUBLIC_VISIBILITY)); |
1581 |
} |
1593 |
} |
1582 |
public void testInvalidTagsNotVisibleRefMethodErrorTagsPublic() { |
1594 |
public void testInvalidTagsNotVisibleRefMethodErrorTagsPublic() { |
1583 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1595 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1584 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1596 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1585 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1597 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1586 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1598 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1587 |
runNegativeTest(InvalidReferencesMethodJavadocComments, resultForInvalidTagsMethodOrConstructor(PUBLIC_VISIBILITY)); |
1599 |
runNegativeTest(METHODS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(PUBLIC_VISIBILITY)); |
1588 |
} |
1600 |
} |
1589 |
public void testInvalidTagsNotVisibleRefConstructorErrorTagsPublic() { |
1601 |
public void testInvalidTagsNotVisibleRefConstructorErrorTagsPublic() { |
1590 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1602 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1591 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1603 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1592 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1604 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1593 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1605 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1594 |
runNegativeTest(InvalidReferencesConstructorJavadocComments, resultForInvalidTagsMethodOrConstructor(PUBLIC_VISIBILITY)); |
1606 |
runNegativeTest(CONSTRUCTORS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(PUBLIC_VISIBILITY)); |
1595 |
} |
1607 |
} |
1596 |
|
1608 |
|
1597 |
// Test invalid javadoc "error" + tags "enabled" but invalid not visible references "disabled" visibility "protected" |
1609 |
// Test invalid javadoc "error" + tags "enabled" but invalid not visible references "disabled" visibility "protected" |
Lines 1600-1627
Link Here
|
1600 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1612 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1601 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1613 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1602 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1614 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1603 |
runNegativeTest(InvalidReferencesClassJavadocComments, resultForInvalidTagsClassOrField(PROTECTED_VISIBILITY)); |
1615 |
runNegativeTest(CLASSES_INVALID_COMMENT, resultForInvalidTagsClassOrField(PROTECTED_VISIBILITY)); |
1604 |
} |
1616 |
} |
1605 |
public void testInvalidTagsNotVisibleRefFieldErrorTagsProtected() { |
1617 |
public void testInvalidTagsNotVisibleRefFieldErrorTagsProtected() { |
1606 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1618 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1607 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1619 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1608 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1620 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1609 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1621 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1610 |
runNegativeTest(InvalidReferencesFieldJavadocComments, resultForInvalidTagsClassOrField(PROTECTED_VISIBILITY)); |
1622 |
runNegativeTest(FIELDS_INVALID_COMMENT, resultForInvalidTagsClassOrField(PROTECTED_VISIBILITY)); |
1611 |
} |
1623 |
} |
1612 |
public void testInvalidTagsNotVisibleRefMethodErrorTagsProtected() { |
1624 |
public void testInvalidTagsNotVisibleRefMethodErrorTagsProtected() { |
1613 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1625 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1614 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1626 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1615 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1627 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1616 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1628 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1617 |
runNegativeTest(InvalidReferencesMethodJavadocComments, resultForInvalidTagsMethodOrConstructor(PROTECTED_VISIBILITY)); |
1629 |
runNegativeTest(METHODS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(PROTECTED_VISIBILITY)); |
1618 |
} |
1630 |
} |
1619 |
public void testInvalidTagsNotVisibleRefConstructorErrorTagsProtected() { |
1631 |
public void testInvalidTagsNotVisibleRefConstructorErrorTagsProtected() { |
1620 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1632 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1621 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1633 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1622 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1634 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1623 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1635 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1624 |
runNegativeTest(InvalidReferencesConstructorJavadocComments, resultForInvalidTagsMethodOrConstructor(PROTECTED_VISIBILITY)); |
1636 |
runNegativeTest(CONSTRUCTORS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(PROTECTED_VISIBILITY)); |
1625 |
} |
1637 |
} |
1626 |
|
1638 |
|
1627 |
// Test invalid javadoc "error" + tags "enabled" but invalid not visible references "disabled" and visibility "default" |
1639 |
// Test invalid javadoc "error" + tags "enabled" but invalid not visible references "disabled" and visibility "default" |
Lines 1630-1679
Link Here
|
1630 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1642 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1631 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1643 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1632 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1644 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1633 |
runNegativeTest(InvalidReferencesClassJavadocComments, resultForInvalidTagsClassOrField(DEFAULT_VISIBILITY)); |
1645 |
runNegativeTest(CLASSES_INVALID_COMMENT, resultForInvalidTagsClassOrField(DEFAULT_VISIBILITY)); |
1634 |
} |
1646 |
} |
1635 |
public void testInvalidTagsNotVisibleRefFieldErrorTagsPackage() { |
1647 |
public void testInvalidTagsNotVisibleRefFieldErrorTagsPackage() { |
1636 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1648 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1637 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1649 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1638 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1650 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1639 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1651 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1640 |
runNegativeTest(InvalidReferencesFieldJavadocComments, resultForInvalidTagsClassOrField(DEFAULT_VISIBILITY)); |
1652 |
runNegativeTest(FIELDS_INVALID_COMMENT, resultForInvalidTagsClassOrField(DEFAULT_VISIBILITY)); |
1641 |
} |
1653 |
} |
1642 |
public void testInvalidTagsNotVisibleRefMethodErrorTagsPackage() { |
1654 |
public void testInvalidTagsNotVisibleRefMethodErrorTagsPackage() { |
1643 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1655 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1644 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1656 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1645 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1657 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1646 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1658 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1647 |
runNegativeTest(InvalidReferencesMethodJavadocComments, resultForInvalidTagsMethodOrConstructor(DEFAULT_VISIBILITY)); |
1659 |
runNegativeTest(METHODS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(DEFAULT_VISIBILITY)); |
1648 |
} |
1660 |
} |
1649 |
public void testInvalidTagsNotVisibleRefConstructorErrorTagsPackage() { |
1661 |
public void testInvalidTagsNotVisibleRefConstructorErrorTagsPackage() { |
1650 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1662 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1651 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1663 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1652 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1664 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1653 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1665 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1654 |
runNegativeTest(InvalidReferencesConstructorJavadocComments, resultForInvalidTagsMethodOrConstructor(DEFAULT_VISIBILITY)); |
1666 |
runNegativeTest(CONSTRUCTORS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(DEFAULT_VISIBILITY)); |
1655 |
} |
1667 |
} |
1656 |
|
1668 |
|
1657 |
// Test invalid javadoc "error" + tags "enabled" but invalid not visible references "disabled" and visibility "private" |
1669 |
// Test invalid javadoc "error" + tags "enabled" but invalid not visible references "disabled" and visibility "private" |
1658 |
public void testInvalidTagsNotVisibleRefClassErrorTagsPrivate() { |
1670 |
public void testInvalidTagsNotVisibleRefClassErrorTagsPrivate() { |
1659 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1671 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1660 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1672 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1661 |
runNegativeTest(InvalidReferencesClassJavadocComments, resultForInvalidTagsClassOrField(PRIVATE_VISIBILITY)); |
1673 |
runNegativeTest(CLASSES_INVALID_COMMENT, resultForInvalidTagsClassOrField(PRIVATE_VISIBILITY)); |
1662 |
} |
1674 |
} |
1663 |
public void testInvalidTagsNotVisibleRefFieldErrorTagsPrivate() { |
1675 |
public void testInvalidTagsNotVisibleRefFieldErrorTagsPrivate() { |
1664 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1676 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1665 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1677 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1666 |
runNegativeTest(InvalidReferencesFieldJavadocComments, resultForInvalidTagsClassOrField(PRIVATE_VISIBILITY)); |
1678 |
runNegativeTest(FIELDS_INVALID_COMMENT, resultForInvalidTagsClassOrField(PRIVATE_VISIBILITY)); |
1667 |
} |
1679 |
} |
1668 |
public void testInvalidTagsNotVisibleRefMethodErrorTagsPrivate() { |
1680 |
public void testInvalidTagsNotVisibleRefMethodErrorTagsPrivate() { |
1669 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1681 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1670 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1682 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1671 |
runNegativeTest(InvalidReferencesMethodJavadocComments, resultForInvalidTagsMethodOrConstructor(PRIVATE_VISIBILITY)); |
1683 |
runNegativeTest(METHODS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(PRIVATE_VISIBILITY)); |
1672 |
} |
1684 |
} |
1673 |
public void testInvalidTagsNotVisibleRefConstructorErrorTagsPrivate() { |
1685 |
public void testInvalidTagsNotVisibleRefConstructorErrorTagsPrivate() { |
1674 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1686 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1675 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1687 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1676 |
runNegativeTest(InvalidReferencesConstructorJavadocComments, resultForInvalidTagsMethodOrConstructor(PRIVATE_VISIBILITY)); |
1688 |
runNegativeTest(CONSTRUCTORS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(PRIVATE_VISIBILITY)); |
1677 |
} |
1689 |
} |
1678 |
|
1690 |
|
1679 |
// Test invalid javadoc "error" + tags "enabled" but invalid deprecated or not visible references "disabled" and visibility "public" |
1691 |
// Test invalid javadoc "error" + tags "enabled" but invalid deprecated or not visible references "disabled" and visibility "public" |
Lines 1683-1689
Link Here
|
1683 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1695 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1684 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1696 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1685 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1697 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1686 |
runNegativeTest(InvalidReferencesClassJavadocComments, resultForInvalidTagsClassOrField(PUBLIC_VISIBILITY)); |
1698 |
runNegativeTest(CLASSES_INVALID_COMMENT, resultForInvalidTagsClassOrField(PUBLIC_VISIBILITY)); |
1687 |
} |
1699 |
} |
1688 |
public void testInvalidTagsDeprecatedAndNotVisibleRefFieldErrorTagsPublic() { |
1700 |
public void testInvalidTagsDeprecatedAndNotVisibleRefFieldErrorTagsPublic() { |
1689 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1701 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
Lines 1691-1697
Link Here
|
1691 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1703 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1692 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1704 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1693 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1705 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1694 |
runNegativeTest(InvalidReferencesFieldJavadocComments, resultForInvalidTagsClassOrField(PUBLIC_VISIBILITY)); |
1706 |
runNegativeTest(FIELDS_INVALID_COMMENT, resultForInvalidTagsClassOrField(PUBLIC_VISIBILITY)); |
1695 |
} |
1707 |
} |
1696 |
public void testInvalidTagsDeprecatedAndNotVisibleRefMethodErrorTagsPublic() { |
1708 |
public void testInvalidTagsDeprecatedAndNotVisibleRefMethodErrorTagsPublic() { |
1697 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1709 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
Lines 1699-1705
Link Here
|
1699 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1711 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1700 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1712 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1701 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1713 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1702 |
runNegativeTest(InvalidReferencesMethodJavadocComments, resultForInvalidTagsMethodOrConstructor(PUBLIC_VISIBILITY)); |
1714 |
runNegativeTest(METHODS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(PUBLIC_VISIBILITY)); |
1703 |
} |
1715 |
} |
1704 |
public void testInvalidTagsDeprecatedAndNotVisibleRefConstructorErrorTagsPublic() { |
1716 |
public void testInvalidTagsDeprecatedAndNotVisibleRefConstructorErrorTagsPublic() { |
1705 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1717 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
Lines 1707-1713
Link Here
|
1707 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1719 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1708 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1720 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1709 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1721 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1710 |
runNegativeTest(InvalidReferencesConstructorJavadocComments, resultForInvalidTagsMethodOrConstructor(PUBLIC_VISIBILITY)); |
1722 |
runNegativeTest(CONSTRUCTORS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(PUBLIC_VISIBILITY)); |
1711 |
} |
1723 |
} |
1712 |
|
1724 |
|
1713 |
// Test invalid javadoc "error" + tags "enabled" but invalid deprecated or not visible references "disabled" visibility "protected" |
1725 |
// Test invalid javadoc "error" + tags "enabled" but invalid deprecated or not visible references "disabled" visibility "protected" |
Lines 1717-1723
Link Here
|
1717 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1729 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1718 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1730 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1719 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1731 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1720 |
runNegativeTest(InvalidReferencesClassJavadocComments, resultForInvalidTagsClassOrField(PROTECTED_VISIBILITY)); |
1732 |
runNegativeTest(CLASSES_INVALID_COMMENT, resultForInvalidTagsClassOrField(PROTECTED_VISIBILITY)); |
1721 |
} |
1733 |
} |
1722 |
public void testInvalidTagsDeprecatedAndNotVisibleRefFieldErrorTagsProtected() { |
1734 |
public void testInvalidTagsDeprecatedAndNotVisibleRefFieldErrorTagsProtected() { |
1723 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1735 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
Lines 1725-1731
Link Here
|
1725 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1737 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1726 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1738 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1727 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1739 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1728 |
runNegativeTest(InvalidReferencesFieldJavadocComments, resultForInvalidTagsClassOrField(PROTECTED_VISIBILITY)); |
1740 |
runNegativeTest(FIELDS_INVALID_COMMENT, resultForInvalidTagsClassOrField(PROTECTED_VISIBILITY)); |
1729 |
} |
1741 |
} |
1730 |
public void testInvalidTagsDeprecatedAndNotVisibleRefMethodErrorTagsProtected() { |
1742 |
public void testInvalidTagsDeprecatedAndNotVisibleRefMethodErrorTagsProtected() { |
1731 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1743 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
Lines 1733-1739
Link Here
|
1733 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1745 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1734 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1746 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1735 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1747 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1736 |
runNegativeTest(InvalidReferencesMethodJavadocComments, resultForInvalidTagsMethodOrConstructor(PROTECTED_VISIBILITY)); |
1748 |
runNegativeTest(METHODS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(PROTECTED_VISIBILITY)); |
1737 |
} |
1749 |
} |
1738 |
public void testInvalidTagsDeprecatedAndNotVisibleRefConstructorErrorTagsProtected() { |
1750 |
public void testInvalidTagsDeprecatedAndNotVisibleRefConstructorErrorTagsProtected() { |
1739 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1751 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
Lines 1741-1747
Link Here
|
1741 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1753 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1742 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1754 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1743 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1755 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1744 |
runNegativeTest(InvalidReferencesConstructorJavadocComments, resultForInvalidTagsMethodOrConstructor(PROTECTED_VISIBILITY)); |
1756 |
runNegativeTest(CONSTRUCTORS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(PROTECTED_VISIBILITY)); |
1745 |
} |
1757 |
} |
1746 |
|
1758 |
|
1747 |
// Test invalid javadoc "error" + tags "enabled" but invalid deprecated or not visible references "disabled" and visibility "default" |
1759 |
// Test invalid javadoc "error" + tags "enabled" but invalid deprecated or not visible references "disabled" and visibility "default" |
Lines 1751-1757
Link Here
|
1751 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1763 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1752 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1764 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1753 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1765 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1754 |
runNegativeTest(InvalidReferencesClassJavadocComments, resultForInvalidTagsClassOrField(DEFAULT_VISIBILITY)); |
1766 |
runNegativeTest(CLASSES_INVALID_COMMENT, resultForInvalidTagsClassOrField(DEFAULT_VISIBILITY)); |
1755 |
} |
1767 |
} |
1756 |
public void testInvalidTagsDeprecatedAndNotVisibleRefFieldErrorTagsPackage() { |
1768 |
public void testInvalidTagsDeprecatedAndNotVisibleRefFieldErrorTagsPackage() { |
1757 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1769 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
Lines 1759-1765
Link Here
|
1759 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1771 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1760 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1772 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1761 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1773 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1762 |
runNegativeTest(InvalidReferencesFieldJavadocComments, resultForInvalidTagsClassOrField(DEFAULT_VISIBILITY)); |
1774 |
runNegativeTest(FIELDS_INVALID_COMMENT, resultForInvalidTagsClassOrField(DEFAULT_VISIBILITY)); |
1763 |
} |
1775 |
} |
1764 |
public void testInvalidTagsDeprecatedAndNotVisibleRefMethodErrorTagsPackage() { |
1776 |
public void testInvalidTagsDeprecatedAndNotVisibleRefMethodErrorTagsPackage() { |
1765 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1777 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
Lines 1767-1773
Link Here
|
1767 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1779 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1768 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1780 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1769 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1781 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1770 |
runNegativeTest(InvalidReferencesMethodJavadocComments, resultForInvalidTagsMethodOrConstructor(DEFAULT_VISIBILITY)); |
1782 |
runNegativeTest(METHODS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(DEFAULT_VISIBILITY)); |
1771 |
} |
1783 |
} |
1772 |
public void testInvalidTagsDeprecatedAndNotVisibleRefConstructorErrorTagsPackage() { |
1784 |
public void testInvalidTagsDeprecatedAndNotVisibleRefConstructorErrorTagsPackage() { |
1773 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1785 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
Lines 1775-1781
Link Here
|
1775 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1787 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1776 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1788 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1777 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1789 |
reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1778 |
runNegativeTest(InvalidReferencesConstructorJavadocComments, resultForInvalidTagsMethodOrConstructor(DEFAULT_VISIBILITY)); |
1790 |
runNegativeTest(CONSTRUCTORS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(DEFAULT_VISIBILITY)); |
1779 |
} |
1791 |
} |
1780 |
|
1792 |
|
1781 |
// Test invalid javadoc "error" + tags "enabled" but invalid deprecated or not visible references "disabled" and visibility "private" |
1793 |
// Test invalid javadoc "error" + tags "enabled" but invalid deprecated or not visible references "disabled" and visibility "private" |
Lines 1783-1807
Link Here
|
1783 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1795 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1784 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1796 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1785 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1797 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1786 |
runNegativeTest(InvalidReferencesClassJavadocComments, resultForInvalidTagsClassOrField(PRIVATE_VISIBILITY)); |
1798 |
runNegativeTest(CLASSES_INVALID_COMMENT, resultForInvalidTagsClassOrField(PRIVATE_VISIBILITY)); |
1787 |
} |
1799 |
} |
1788 |
public void testInvalidTagsDeprecatedAndNotVisibleRefFieldErrorTagsPrivate() { |
1800 |
public void testInvalidTagsDeprecatedAndNotVisibleRefFieldErrorTagsPrivate() { |
1789 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1801 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1790 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1802 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1791 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1803 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1792 |
runNegativeTest(InvalidReferencesFieldJavadocComments, resultForInvalidTagsClassOrField(PRIVATE_VISIBILITY)); |
1804 |
runNegativeTest(FIELDS_INVALID_COMMENT, resultForInvalidTagsClassOrField(PRIVATE_VISIBILITY)); |
1793 |
} |
1805 |
} |
1794 |
public void testInvalidTagsDeprecatedAndNotVisibleRefMethodErrorTagsPrivate() { |
1806 |
public void testInvalidTagsDeprecatedAndNotVisibleRefMethodErrorTagsPrivate() { |
1795 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1807 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1796 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1808 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1797 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1809 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1798 |
runNegativeTest(InvalidReferencesMethodJavadocComments, resultForInvalidTagsMethodOrConstructor(PRIVATE_VISIBILITY)); |
1810 |
runNegativeTest(METHODS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(PRIVATE_VISIBILITY)); |
1799 |
} |
1811 |
} |
1800 |
public void testInvalidTagsDeprecatedAndNotVisibleRefConstructorErrorTagsPrivate() { |
1812 |
public void testInvalidTagsDeprecatedAndNotVisibleRefConstructorErrorTagsPrivate() { |
1801 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1813 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1802 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1814 |
reportInvalidJavadocTagsDeprecatedRef = CompilerOptions.DISABLED; |
1803 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1815 |
reportInvalidJavadocTagsNotVisibleRef = CompilerOptions.DISABLED; |
1804 |
runNegativeTest(InvalidReferencesConstructorJavadocComments, resultForInvalidTagsMethodOrConstructor(PRIVATE_VISIBILITY)); |
1816 |
runNegativeTest(CONSTRUCTORS_INVALID_COMMENT, resultForInvalidTagsMethodOrConstructor(PRIVATE_VISIBILITY)); |
1805 |
} |
1817 |
} |
1806 |
|
1818 |
|
1807 |
/* |
1819 |
/* |
Lines 1809-1815
Link Here
|
1809 |
*/ |
1821 |
*/ |
1810 |
// Test default missing javadoc tags (means "ignore" with visibility "public" and overriding="enabled") |
1822 |
// Test default missing javadoc tags (means "ignore" with visibility "public" and overriding="enabled") |
1811 |
public void testMissingTagsDefaults() { |
1823 |
public void testMissingTagsDefaults() { |
1812 |
runConformTest(MissingTags); |
1824 |
runConformTest(MISSING_TAGS); |
1813 |
} |
1825 |
} |
1814 |
|
1826 |
|
1815 |
// Test missing javadoc tags "error" + "public" visibility + "enabled" overriding |
1827 |
// Test missing javadoc tags "error" + "public" visibility + "enabled" overriding |
Lines 1817-1823
Link Here
|
1817 |
reportMissingJavadocTags = CompilerOptions.ERROR; |
1829 |
reportMissingJavadocTags = CompilerOptions.ERROR; |
1818 |
reportMissingJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1830 |
reportMissingJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1819 |
reportMissingJavadocTagsOverriding = CompilerOptions.ENABLED; |
1831 |
reportMissingJavadocTagsOverriding = CompilerOptions.ENABLED; |
1820 |
runNegativeTest(MissingTags, resultForMissingTags(PUBLIC_VISIBILITY)); |
1832 |
runNegativeTest(MISSING_TAGS, resultForMissingTags(PUBLIC_VISIBILITY)); |
1821 |
} |
1833 |
} |
1822 |
|
1834 |
|
1823 |
// Test missing javadoc tags "error" + "public" visibility + "disabled" overriding |
1835 |
// Test missing javadoc tags "error" + "public" visibility + "disabled" overriding |
Lines 1825-1831
Link Here
|
1825 |
reportMissingJavadocTags = CompilerOptions.ERROR; |
1837 |
reportMissingJavadocTags = CompilerOptions.ERROR; |
1826 |
reportMissingJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1838 |
reportMissingJavadocTagsVisibility = CompilerOptions.PUBLIC; |
1827 |
reportMissingJavadocTagsOverriding = CompilerOptions.DISABLED; |
1839 |
reportMissingJavadocTagsOverriding = CompilerOptions.DISABLED; |
1828 |
runNegativeTest(MissingTags, resultForMissingTags(PUBLIC_VISIBILITY)); |
1840 |
runNegativeTest(MISSING_TAGS, resultForMissingTags(PUBLIC_VISIBILITY)); |
1829 |
} |
1841 |
} |
1830 |
|
1842 |
|
1831 |
// Test missing javadoc tags "error" + "protected" visibility + "enabled" overriding |
1843 |
// Test missing javadoc tags "error" + "protected" visibility + "enabled" overriding |
Lines 1833-1839
Link Here
|
1833 |
reportMissingJavadocTags = CompilerOptions.ERROR; |
1845 |
reportMissingJavadocTags = CompilerOptions.ERROR; |
1834 |
reportMissingJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1846 |
reportMissingJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1835 |
reportMissingJavadocTagsOverriding = CompilerOptions.ENABLED; |
1847 |
reportMissingJavadocTagsOverriding = CompilerOptions.ENABLED; |
1836 |
runNegativeTest(MissingTags, resultForMissingTags(PROTECTED_VISIBILITY)); |
1848 |
runNegativeTest(MISSING_TAGS, resultForMissingTags(PROTECTED_VISIBILITY)); |
1837 |
} |
1849 |
} |
1838 |
|
1850 |
|
1839 |
// Test missing javadoc tags "error" + "protected" visibility + "disabled" overriding |
1851 |
// Test missing javadoc tags "error" + "protected" visibility + "disabled" overriding |
Lines 1841-1847
Link Here
|
1841 |
reportMissingJavadocTags = CompilerOptions.ERROR; |
1853 |
reportMissingJavadocTags = CompilerOptions.ERROR; |
1842 |
reportMissingJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1854 |
reportMissingJavadocTagsVisibility = CompilerOptions.PROTECTED; |
1843 |
reportMissingJavadocTagsOverriding = CompilerOptions.DISABLED; |
1855 |
reportMissingJavadocTagsOverriding = CompilerOptions.DISABLED; |
1844 |
runNegativeTest(MissingTags, resultForMissingTags(PROTECTED_VISIBILITY)); |
1856 |
runNegativeTest(MISSING_TAGS, resultForMissingTags(PROTECTED_VISIBILITY)); |
1845 |
} |
1857 |
} |
1846 |
|
1858 |
|
1847 |
// Test missing javadoc tags "error" + "default" visibility + "enabled" overriding |
1859 |
// Test missing javadoc tags "error" + "default" visibility + "enabled" overriding |
Lines 1849-1855
Link Here
|
1849 |
reportMissingJavadocTags = CompilerOptions.ERROR; |
1861 |
reportMissingJavadocTags = CompilerOptions.ERROR; |
1850 |
reportMissingJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1862 |
reportMissingJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1851 |
reportMissingJavadocTagsOverriding = CompilerOptions.ENABLED; |
1863 |
reportMissingJavadocTagsOverriding = CompilerOptions.ENABLED; |
1852 |
runNegativeTest(MissingTags, resultForMissingTags(DEFAULT_VISIBILITY)); |
1864 |
runNegativeTest(MISSING_TAGS, resultForMissingTags(DEFAULT_VISIBILITY)); |
1853 |
} |
1865 |
} |
1854 |
|
1866 |
|
1855 |
// Test missing javadoc tags "error" + "default" visibility + "disabled" overriding |
1867 |
// Test missing javadoc tags "error" + "default" visibility + "disabled" overriding |
Lines 1857-1863
Link Here
|
1857 |
reportMissingJavadocTags = CompilerOptions.ERROR; |
1869 |
reportMissingJavadocTags = CompilerOptions.ERROR; |
1858 |
reportMissingJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1870 |
reportMissingJavadocTagsVisibility = CompilerOptions.DEFAULT; |
1859 |
reportMissingJavadocTagsOverriding = CompilerOptions.DISABLED; |
1871 |
reportMissingJavadocTagsOverriding = CompilerOptions.DISABLED; |
1860 |
runNegativeTest(MissingTags, resultForMissingTags(DEFAULT_VISIBILITY)); |
1872 |
runNegativeTest(MISSING_TAGS, resultForMissingTags(DEFAULT_VISIBILITY)); |
1861 |
} |
1873 |
} |
1862 |
|
1874 |
|
1863 |
// Test missing javadoc tags "error" + "private" visibility + "enabled" overriding |
1875 |
// Test missing javadoc tags "error" + "private" visibility + "enabled" overriding |
Lines 1865-1871
Link Here
|
1865 |
reportMissingJavadocTags = CompilerOptions.ERROR; |
1877 |
reportMissingJavadocTags = CompilerOptions.ERROR; |
1866 |
reportMissingJavadocTagsVisibility = CompilerOptions.PRIVATE; |
1878 |
reportMissingJavadocTagsVisibility = CompilerOptions.PRIVATE; |
1867 |
reportMissingJavadocTagsOverriding = CompilerOptions.ENABLED; |
1879 |
reportMissingJavadocTagsOverriding = CompilerOptions.ENABLED; |
1868 |
runNegativeTest(MissingTags, resultForMissingTags(PRIVATE_VISIBILITY)); |
1880 |
runNegativeTest(MISSING_TAGS, resultForMissingTags(PRIVATE_VISIBILITY)); |
1869 |
} |
1881 |
} |
1870 |
|
1882 |
|
1871 |
// Test missing javadoc tags "error" + "private" visibility + "disabled" overriding |
1883 |
// Test missing javadoc tags "error" + "private" visibility + "disabled" overriding |
Lines 1873-1879
Link Here
|
1873 |
reportMissingJavadocTags = CompilerOptions.ERROR; |
1885 |
reportMissingJavadocTags = CompilerOptions.ERROR; |
1874 |
reportMissingJavadocTagsVisibility = CompilerOptions.PRIVATE; |
1886 |
reportMissingJavadocTagsVisibility = CompilerOptions.PRIVATE; |
1875 |
reportMissingJavadocTagsOverriding = CompilerOptions.DISABLED; |
1887 |
reportMissingJavadocTagsOverriding = CompilerOptions.DISABLED; |
1876 |
runNegativeTest(MissingTags, resultForMissingTags(PRIVATE_VISIBILITY)); |
1888 |
runNegativeTest(MISSING_TAGS, resultForMissingTags(PRIVATE_VISIBILITY)); |
1877 |
} |
1889 |
} |
1878 |
|
1890 |
|
1879 |
/* |
1891 |
/* |
Lines 1881-1887
Link Here
|
1881 |
*/ |
1893 |
*/ |
1882 |
// Test default missing javadoc comments (means "ignore" with visibility "public" and overriding="enabled") |
1894 |
// Test default missing javadoc comments (means "ignore" with visibility "public" and overriding="enabled") |
1883 |
public void testMissingCommentsDefaults() { |
1895 |
public void testMissingCommentsDefaults() { |
1884 |
runConformTest(MissingComments); |
1896 |
runConformTest(MISSING_COMMENTS); |
1885 |
} |
1897 |
} |
1886 |
|
1898 |
|
1887 |
// Test missing javadoc comments "error" + "public" visibility + "enabled" overriding |
1899 |
// Test missing javadoc comments "error" + "public" visibility + "enabled" overriding |
Lines 1889-1895
Link Here
|
1889 |
reportMissingJavadocComments = CompilerOptions.ERROR; |
1901 |
reportMissingJavadocComments = CompilerOptions.ERROR; |
1890 |
reportMissingJavadocCommentsVisibility = CompilerOptions.PUBLIC; |
1902 |
reportMissingJavadocCommentsVisibility = CompilerOptions.PUBLIC; |
1891 |
reportMissingJavadocCommentsOverriding = CompilerOptions.ENABLED; |
1903 |
reportMissingJavadocCommentsOverriding = CompilerOptions.ENABLED; |
1892 |
runNegativeTest(MissingComments, resultForMissingComments(PUBLIC_VISIBILITY)); |
1904 |
runNegativeTest(MISSING_COMMENTS, resultForMissingComments(PUBLIC_VISIBILITY)); |
1893 |
} |
1905 |
} |
1894 |
|
1906 |
|
1895 |
// Test missing javadoc comments "error" + "public" visibility + "disabled" overriding |
1907 |
// Test missing javadoc comments "error" + "public" visibility + "disabled" overriding |
Lines 1897-1903
Link Here
|
1897 |
reportMissingJavadocComments = CompilerOptions.ERROR; |
1909 |
reportMissingJavadocComments = CompilerOptions.ERROR; |
1898 |
reportMissingJavadocCommentsVisibility = CompilerOptions.PUBLIC; |
1910 |
reportMissingJavadocCommentsVisibility = CompilerOptions.PUBLIC; |
1899 |
reportMissingJavadocCommentsOverriding = CompilerOptions.DISABLED; |
1911 |
reportMissingJavadocCommentsOverriding = CompilerOptions.DISABLED; |
1900 |
runNegativeTest(MissingComments, resultForMissingComments(PUBLIC_VISIBILITY)); |
1912 |
runNegativeTest(MISSING_COMMENTS, resultForMissingComments(PUBLIC_VISIBILITY)); |
1901 |
} |
1913 |
} |
1902 |
|
1914 |
|
1903 |
// Test missing javadoc comments "error" + "protected" visibility + "enabled" overriding |
1915 |
// Test missing javadoc comments "error" + "protected" visibility + "enabled" overriding |
Lines 1905-1911
Link Here
|
1905 |
reportMissingJavadocComments = CompilerOptions.ERROR; |
1917 |
reportMissingJavadocComments = CompilerOptions.ERROR; |
1906 |
reportMissingJavadocCommentsVisibility = CompilerOptions.PROTECTED; |
1918 |
reportMissingJavadocCommentsVisibility = CompilerOptions.PROTECTED; |
1907 |
reportMissingJavadocCommentsOverriding = CompilerOptions.ENABLED; |
1919 |
reportMissingJavadocCommentsOverriding = CompilerOptions.ENABLED; |
1908 |
runNegativeTest(MissingComments, resultForMissingComments(PROTECTED_VISIBILITY)); |
1920 |
runNegativeTest(MISSING_COMMENTS, resultForMissingComments(PROTECTED_VISIBILITY)); |
1909 |
} |
1921 |
} |
1910 |
|
1922 |
|
1911 |
// Test missing javadoc comments "error" + "protected" visibility + "disabled" overriding |
1923 |
// Test missing javadoc comments "error" + "protected" visibility + "disabled" overriding |
Lines 1913-1919
Link Here
|
1913 |
reportMissingJavadocComments = CompilerOptions.ERROR; |
1925 |
reportMissingJavadocComments = CompilerOptions.ERROR; |
1914 |
reportMissingJavadocCommentsVisibility = CompilerOptions.PROTECTED; |
1926 |
reportMissingJavadocCommentsVisibility = CompilerOptions.PROTECTED; |
1915 |
reportMissingJavadocCommentsOverriding = CompilerOptions.DISABLED; |
1927 |
reportMissingJavadocCommentsOverriding = CompilerOptions.DISABLED; |
1916 |
runNegativeTest(MissingComments, resultForMissingComments(PROTECTED_VISIBILITY)); |
1928 |
runNegativeTest(MISSING_COMMENTS, resultForMissingComments(PROTECTED_VISIBILITY)); |
1917 |
} |
1929 |
} |
1918 |
|
1930 |
|
1919 |
// Test missing javadoc comments "error" + "default" visibility + "enabled" overriding |
1931 |
// Test missing javadoc comments "error" + "default" visibility + "enabled" overriding |
Lines 1921-1927
Link Here
|
1921 |
reportMissingJavadocComments = CompilerOptions.ERROR; |
1933 |
reportMissingJavadocComments = CompilerOptions.ERROR; |
1922 |
reportMissingJavadocCommentsVisibility = CompilerOptions.DEFAULT; |
1934 |
reportMissingJavadocCommentsVisibility = CompilerOptions.DEFAULT; |
1923 |
reportMissingJavadocCommentsOverriding = CompilerOptions.ENABLED; |
1935 |
reportMissingJavadocCommentsOverriding = CompilerOptions.ENABLED; |
1924 |
runNegativeTest(MissingComments, resultForMissingComments(DEFAULT_VISIBILITY)); |
1936 |
runNegativeTest(MISSING_COMMENTS, resultForMissingComments(DEFAULT_VISIBILITY)); |
1925 |
} |
1937 |
} |
1926 |
|
1938 |
|
1927 |
// Test missing javadoc comments "error" + "default" visibility + "disabled" overriding |
1939 |
// Test missing javadoc comments "error" + "default" visibility + "disabled" overriding |
Lines 1929-1935
Link Here
|
1929 |
reportMissingJavadocComments = CompilerOptions.ERROR; |
1941 |
reportMissingJavadocComments = CompilerOptions.ERROR; |
1930 |
reportMissingJavadocCommentsVisibility = CompilerOptions.DEFAULT; |
1942 |
reportMissingJavadocCommentsVisibility = CompilerOptions.DEFAULT; |
1931 |
reportMissingJavadocCommentsOverriding = CompilerOptions.DISABLED; |
1943 |
reportMissingJavadocCommentsOverriding = CompilerOptions.DISABLED; |
1932 |
runNegativeTest(MissingComments, resultForMissingComments(DEFAULT_VISIBILITY)); |
1944 |
runNegativeTest(MISSING_COMMENTS, resultForMissingComments(DEFAULT_VISIBILITY)); |
1933 |
} |
1945 |
} |
1934 |
|
1946 |
|
1935 |
// Test missing javadoc comments "error" + "private" visibility + "enabled" overriding |
1947 |
// Test missing javadoc comments "error" + "private" visibility + "enabled" overriding |
Lines 1937-1943
Link Here
|
1937 |
reportMissingJavadocComments = CompilerOptions.ERROR; |
1949 |
reportMissingJavadocComments = CompilerOptions.ERROR; |
1938 |
reportMissingJavadocCommentsVisibility = CompilerOptions.PRIVATE; |
1950 |
reportMissingJavadocCommentsVisibility = CompilerOptions.PRIVATE; |
1939 |
reportMissingJavadocCommentsOverriding = CompilerOptions.ENABLED; |
1951 |
reportMissingJavadocCommentsOverriding = CompilerOptions.ENABLED; |
1940 |
runNegativeTest(MissingComments, resultForMissingComments(PRIVATE_VISIBILITY)); |
1952 |
runNegativeTest(MISSING_COMMENTS, resultForMissingComments(PRIVATE_VISIBILITY)); |
1941 |
} |
1953 |
} |
1942 |
|
1954 |
|
1943 |
// Test missing javadoc comments "error" + "private" visibility + "disabled" overriding |
1955 |
// Test missing javadoc comments "error" + "private" visibility + "disabled" overriding |
Lines 1945-1951
Link Here
|
1945 |
reportMissingJavadocComments = CompilerOptions.ERROR; |
1957 |
reportMissingJavadocComments = CompilerOptions.ERROR; |
1946 |
reportMissingJavadocCommentsVisibility = CompilerOptions.PRIVATE; |
1958 |
reportMissingJavadocCommentsVisibility = CompilerOptions.PRIVATE; |
1947 |
reportMissingJavadocCommentsOverriding = CompilerOptions.DISABLED; |
1959 |
reportMissingJavadocCommentsOverriding = CompilerOptions.DISABLED; |
1948 |
runNegativeTest(MissingComments, resultForMissingComments(PRIVATE_VISIBILITY)); |
1960 |
runNegativeTest(MISSING_COMMENTS, resultForMissingComments(PRIVATE_VISIBILITY)); |
1949 |
} |
1961 |
} |
1950 |
|
1962 |
|
1951 |
/* |
1963 |
/* |
Lines 1954-1981
Link Here
|
1954 |
public void testInvalidTagsClassWithMissingTagsOption() { |
1966 |
public void testInvalidTagsClassWithMissingTagsOption() { |
1955 |
reportMissingJavadocTags = CompilerOptions.ERROR; |
1967 |
reportMissingJavadocTags = CompilerOptions.ERROR; |
1956 |
reportMissingJavadocTagsVisibility = CompilerOptions.PRIVATE; |
1968 |
reportMissingJavadocTagsVisibility = CompilerOptions.PRIVATE; |
1957 |
runConformTest(InvalidReferencesClassJavadocComments); |
1969 |
runConformTest(CLASSES_INVALID_COMMENT); |
1958 |
} |
1970 |
} |
1959 |
public void testInvalidTagsFieldWithMissingTagsOption() { |
1971 |
public void testInvalidTagsFieldWithMissingTagsOption() { |
1960 |
reportMissingJavadocTags = CompilerOptions.ERROR; |
1972 |
reportMissingJavadocTags = CompilerOptions.ERROR; |
1961 |
reportMissingJavadocTagsVisibility = CompilerOptions.PRIVATE; |
1973 |
reportMissingJavadocTagsVisibility = CompilerOptions.PRIVATE; |
1962 |
runConformTest(InvalidReferencesFieldJavadocComments); |
1974 |
runConformTest(FIELDS_INVALID_COMMENT); |
1963 |
} |
1975 |
} |
1964 |
public void testInvalidTagsMethodWithMissingTagsOption() { |
1976 |
public void testInvalidTagsMethodWithMissingTagsOption() { |
1965 |
reportMissingJavadocTags = CompilerOptions.ERROR; |
1977 |
reportMissingJavadocTags = CompilerOptions.ERROR; |
1966 |
reportMissingJavadocTagsVisibility = CompilerOptions.PRIVATE; |
1978 |
reportMissingJavadocTagsVisibility = CompilerOptions.PRIVATE; |
1967 |
runConformTest(InvalidReferencesMethodJavadocComments); |
1979 |
runConformTest(METHODS_INVALID_COMMENT); |
1968 |
} |
1980 |
} |
1969 |
public void testInvalidTagsConstructorWithMissingTagsOption() { |
1981 |
public void testInvalidTagsConstructorWithMissingTagsOption() { |
1970 |
reportMissingJavadocTags = CompilerOptions.ERROR; |
1982 |
reportMissingJavadocTags = CompilerOptions.ERROR; |
1971 |
reportMissingJavadocTagsVisibility = CompilerOptions.PRIVATE; |
1983 |
reportMissingJavadocTagsVisibility = CompilerOptions.PRIVATE; |
1972 |
runConformTest(InvalidReferencesConstructorJavadocComments); |
1984 |
runConformTest(CONSTRUCTORS_INVALID_COMMENT); |
1973 |
} |
1985 |
} |
1974 |
public void testMissingTagsWithInvalidTagsOption() { |
1986 |
public void testMissingTagsWithInvalidTagsOption() { |
1975 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1987 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1976 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1988 |
reportInvalidJavadocTags = CompilerOptions.ENABLED; |
1977 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PRIVATE; |
1989 |
reportInvalidJavadocTagsVisibility = CompilerOptions.PRIVATE; |
1978 |
runConformTest(MissingTags); |
1990 |
runConformTest(MISSING_TAGS); |
1979 |
} |
1991 |
} |
1980 |
|
1992 |
|
1981 |
/** |
1993 |
/** |
Lines 1987-2010
Link Here
|
1987 |
this.docCommentSupport = CompilerOptions.DISABLED; |
1999 |
this.docCommentSupport = CompilerOptions.DISABLED; |
1988 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
2000 |
reportInvalidJavadoc = CompilerOptions.ERROR; |
1989 |
reportInvalidJavadocTags = CompilerOptions.ERROR; |
2001 |
reportInvalidJavadocTags = CompilerOptions.ERROR; |
1990 |
runConformTest(InvalidReferencesClassJavadocComments); |
2002 |
runConformTest(CLASSES_INVALID_COMMENT); |
1991 |
runConformTest(InvalidReferencesFieldJavadocComments); |
2003 |
runConformTest(FIELDS_INVALID_COMMENT); |
1992 |
runConformTest(InvalidReferencesMethodJavadocComments); |
2004 |
runConformTest(METHODS_INVALID_COMMENT); |
1993 |
runConformTest(InvalidReferencesConstructorJavadocComments); |
2005 |
runConformTest(CONSTRUCTORS_INVALID_COMMENT); |
1994 |
} |
2006 |
} |
1995 |
|
2007 |
|
1996 |
// Test missing javadoc comments "error" with javadoc comment support disabled |
2008 |
// Test missing javadoc comments "error" with javadoc comment support disabled |
1997 |
public void testMissingCommentsJavadocSupportDisabled() { |
2009 |
public void testMissingCommentsJavadocSupportDisabled() { |
1998 |
this.docCommentSupport = CompilerOptions.DISABLED; |
2010 |
this.docCommentSupport = CompilerOptions.DISABLED; |
1999 |
reportMissingJavadocComments = CompilerOptions.ERROR; |
2011 |
reportMissingJavadocComments = CompilerOptions.ERROR; |
2000 |
runConformReferenceTest(MissingComments); |
2012 |
runConformReferenceTest(MISSING_COMMENTS); |
2001 |
} |
2013 |
} |
2002 |
|
2014 |
|
2003 |
// Test missing javadoc tags "error" with javadoc comment support disabled |
2015 |
// Test missing javadoc tags "error" with javadoc comment support disabled |
2004 |
public void testMissingTagsJavadocSupportDisabled() { |
2016 |
public void testMissingTagsJavadocSupportDisabled() { |
2005 |
this.docCommentSupport = CompilerOptions.DISABLED; |
2017 |
this.docCommentSupport = CompilerOptions.DISABLED; |
2006 |
reportMissingJavadocTags = CompilerOptions.ERROR; |
2018 |
reportMissingJavadocTags = CompilerOptions.ERROR; |
2007 |
runConformReferenceTest(MissingTags); |
2019 |
runConformReferenceTest(MISSING_TAGS); |
2008 |
} |
2020 |
} |
2009 |
|
2021 |
|
2010 |
} |
2022 |
} |