File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
qulice-checkstyle/src/test
java/com/qulice/checkstyle
resources/com/qulice/checkstyle Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -723,6 +723,17 @@ void allowsStringLiteralsOnBothSideInComparisons()
723723 this .runValidation ("ValidLiteralComparisonCheck.java" , true );
724724 }
725725
726+ /**
727+ * {@link MultilineJavadocTagsCheck} mustn't throw an internal exception,
728+ * if it meets a block comment instead of javadoc.
729+ * @throws Exception If an internal exception occurs
730+ */
731+ @ Test
732+ void rejectsInvalidMethodDocWithoutInternalException ()
733+ throws Exception {
734+ this .runValidation ("InvalidMethodDoc.java" , false );
735+ }
736+
726737 /**
727738 * Convert file name to URL.
728739 * @param file The file
Original file line number Diff line number Diff line change 1+ /*
2+ * Hello
3+ */
4+ package foo ;
5+
6+ /**
7+ * The {@code InvalidMethodDoc#method} comment isn't javadoc, but it's not a reason
8+ * to fail {@code MultilineJavadocTagsCheck} validation with an unhandled exception.
9+ * @foo bar
10+ */
11+ class InvalidMethodDoc {
12+ /*
13+ * Run method.
14+ */
15+ void method () {
16+ }
17+ }
You can’t perform that action at this time.
0 commit comments