Skip to content

Commit f730110

Browse files
Hari Prasad KummariPaul Hohensee
authored andcommitted
8354447: Missing test for retroactive @SuppressWarnings("dangling-doc-comments") behavior
Backport-of: 0e725c6fb1f324b0fd17d206806b4104dc7ba767
1 parent 91b33c3 commit f730110

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test/langtools/tools/javac/danglingDocComments/DanglingDocCommentsClass.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,13 @@ public void m4b() { }
4545
/** Good comment. */
4646
int i = 0;
4747
}
48-
}
48+
49+
/** Dangling comment X */
50+
51+
/**
52+
* The {@code @SuppressWarnings} annotation below retroactively
53+
* silences the warning about "Dangling comment X".
54+
*/
55+
@SuppressWarnings("dangling-doc-comments")
56+
public void m5() { }
57+
}

0 commit comments

Comments
 (0)