Add test for retroactive @SuppressWarnings("dangling-doc-comments") behavior.

This commit is contained in:
Archie L. Cobbs 2025-04-11 14:50:27 -05:00
parent 1d7138fe02
commit e67b47be0f

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