mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00

Add new Comment helper class to parse contents of comments in source code Reviewed-by: jjg
20 lines
440 B
Java
20 lines
440 B
Java
/**
|
|
* @test /nodynamiccopyright/
|
|
* @bug 7104201
|
|
* @summary Refactor DocCommentScanner
|
|
* @compile/fail/ref=DeprecatedDocComment4.out -XDrawDiagnostics -Werror -Xlint:dep-ann DeprecatedDocComment4.java
|
|
*/
|
|
|
|
class DeprecatedDocComment4 {
|
|
/** @deprecated **/
|
|
/* block */
|
|
void test1() {};
|
|
|
|
/** @deprecated **/
|
|
/** double javadoc */
|
|
void test2() {};
|
|
|
|
/** @deprecated **/
|
|
//line comment
|
|
void test3() {};
|
|
}
|