mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-29 04:28:30 +00:00
8354447: Missing test for retroactive @SuppressWarnings("dangling-doc-comments") behavior
Reviewed-by: darcy
This commit is contained in:
parent
b3f56086c9
commit
0e725c6fb1
@ -45,4 +45,13 @@ public /** Misplaced: after mods. */ class DanglingDocCommentsClass /** Misplace
|
||||
/** Good comment. */
|
||||
int i = 0;
|
||||
}
|
||||
}
|
||||
|
||||
/** Dangling comment X */
|
||||
|
||||
/**
|
||||
* The {@code @SuppressWarnings} annotation below retroactively
|
||||
* silences the warning about "Dangling comment X".
|
||||
*/
|
||||
@SuppressWarnings("dangling-doc-comments")
|
||||
public void m5() { }
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user