Skip to content

Commit 8dffb48

Browse files
Anmol202005romani
authored andcommitted
Issue #15762: resolved javadoc issue
1 parent 38a65ef commit 8dffb48

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadocparagraph/InputJavadocParagraphCheck1.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ void inheritDocWithThrows() {}
4848
* Some summary.
4949
*
5050
*<p>
51-
* <ul> // ok until #15762
52-
* <p> // ok until #15762
51+
* <ul>
52+
* <p>
5353
* <li>1</li> should NOT give violation as there is not empty line before
54-
* </p> // false-negative on this line & above until #15762
55-
* </ul> // ok until #15762
54+
* </p>
55+
* </ul>
5656
*</p>
5757
*/
5858
public void foo() {}
@@ -74,8 +74,8 @@ public void fooo() {}
7474
* Some summary.
7575
*
7676
* <p>
77-
* <table> // ok until #15762
78-
* </table> // ok until #15762
77+
* <table>
78+
* </table>
7979
* </p>
8080
*/
8181
public void foooo() {}
@@ -85,8 +85,8 @@ public void foooo() {}
8585
* Some summary.
8686
*
8787
* <p>
88-
* <pre>testing...</pre> // ok until #15762
89-
* <pre>testing...</pre> // ok until #15762
88+
* <pre>testing...</pre>
89+
* <pre>testing...</pre>
9090
* </p>
9191
*/
9292
public void fooooo() {}

src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadocparagraph/InputJavadocParagraphIncorrectOpenClosedTag.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ public class InputJavadocParagraphIncorrectOpenClosedTag {
5656
* Some Summary.
5757
*
5858
* <p>
59-
* <ul> // ok until #15762
60-
* <li>Item 1</li> // ok until #15762
61-
* <li>Item 2</li> // ok until #15762
62-
* <li>Item 3</li> // ok until #15762
63-
* </ul> // ok until #15762
59+
* <ul>
60+
* <li>Item 1</li>
61+
* <li>Item 2</li>
62+
* <li>Item 3</li>
63+
* </ul>
6464
* </p>
6565
*/
6666
int e;
@@ -79,11 +79,11 @@ public class InputJavadocParagraphIncorrectOpenClosedTag {
7979
* Some Summary.
8080
*
8181
* <p>
82-
* <b>testing....</b> // ok until #15762
82+
* <b>testing....</b>
8383
* </p>
8484
*
8585
* <p>
86-
* <h1>testing....</h1> // ok until #15762
86+
* <h1>testing....</h1>
8787
* </p>
8888
*/
8989
// violation 4 lines above '<p> tag should not precede HTML block-tag '<h1>''

src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadocparagraph/InputJavadocParagraphIncorrectOpenClosedTag2.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public class InputJavadocParagraphIncorrectOpenClosedTag2 {
4848
* Some Summary.
4949
*
5050
* <p>
51-
* Some Javadoc. // ok until #15762
51+
* Some Javadoc.
5252
* </p>
5353
*/
5454
// violation 4 lines above '<p> tag should be placed immediately before the first word'
@@ -61,11 +61,11 @@ public class InputJavadocParagraphIncorrectOpenClosedTag2 {
6161
* Some Summary.
6262
*
6363
* <p>
64-
* <ul> // ok until #15762
65-
* <li>Item 1</li> // ok until #15762
66-
* <li>Item 2</li> // ok until #15762
67-
* <li>Item 3</li> // ok until #15762
68-
* </ul> // ok until #15762
64+
* <ul>
65+
* <li>Item 1</li>
66+
* <li>Item 2</li>
67+
* <li>Item 3</li>
68+
* </ul>
6969
* </p>
7070
*/
7171
int e;

0 commit comments

Comments
 (0)