0a58cffe88
8329296: Update Elements for '///' documentation comments Co-authored-by: Jim Laskey <jlaskey@openjdk.org> Reviewed-by: prappo, darcy, hannesw
24 lines
1.0 KiB
Java
24 lines
1.0 KiB
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @compile -Xlint:dangling-doc-comments DanglingDocCommentsClass_Mixed.java
|
|
* @compile/ref=empty.out -XDrawDiagnostics DanglingDocCommentsClass_Mixed.java
|
|
* @compile/ref=DanglingDocCommentsClass_Mixed.enabled.out -XDrawDiagnostics -Xlint:dangling-doc-comments DanglingDocCommentsClass_Mixed.java
|
|
* @compile/ref=empty.out -XDrawDiagnostics --disable-line-doc-comments -Xlint:dangling-doc-comments DanglingDocCommentsClass_Mixed.java
|
|
*/
|
|
|
|
// This is a test of duplicate doc comments in a class, using a mixture of traditional and end-of-line comments
|
|
// It is a useful test case for a real-world scenario in which an end-of-line comment is
|
|
// placed between a traditional doc comment and its declaration.
|
|
|
|
/** First Class Comment. */
|
|
/// Second Class Comment.
|
|
@Deprecated public class DanglingDocCommentsClass_Mixed
|
|
{
|
|
/** First Field Comment. */
|
|
/// Second Field Comment.
|
|
public int i;
|
|
|
|
/** First Method Comment. */
|
|
/// Second Method Comment.
|
|
public void m1() { }
|
|
} |