mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
7104201: Refactor DocCommentScanner
Add new Comment helper class to parse contents of comments in source code Reviewed-by: jjg
This commit is contained in:
parent
dae561e3ea
commit
be5a83c8ce
7 changed files with 638 additions and 588 deletions
|
@ -0,0 +1,20 @@
|
|||
/**
|
||||
* @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() {};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue