8354447: Missing test for retroactive @SuppressWarnings("dangling-doc-comments") behavior

Reviewed-by: darcy
This commit is contained in:
Archie Cobbs 2025-06-13 21:42:17 +00:00
parent b3f56086c9
commit 0e725c6fb1

View File

@ -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() { }
}