mirror of
https://github.com/openjdk/jdk.git
synced 2026-08-03 22:55:40 +00:00
Add test for retroactive @SuppressWarnings("dangling-doc-comments") behavior.
This commit is contained in:
parent
1d7138fe02
commit
e67b47be0f
@ -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