Closed MikailBag closed 6 months ago
@MikailBag it is good to have tests for the change to understand the reason for the change
@pnatashap I updated test so that it contains a PACKAGE_DEV token. Manual testing shows that it is emitted in package-info.java
as well
$ cat package-info.java
package foo.bar;
$ java -jar checkstyle-10.16.0-all.jar -t package-info.java
COMPILATION_UNIT -> COMPILATION_UNIT [1:0]
`--PACKAGE_DEF -> package [1:0]
|--ANNOTATIONS -> ANNOTATIONS [1:11]
|--DOT -> . [1:11]
| |--IDENT -> foo [1:8]
| `--IDENT -> bar [1:12]
`--SEMI -> ; [1:15]
Thank you for comment, I've added a doc-comment to Valid.java.
@yegor256 please take a look
@rultor merge
Should fix #1072