RFR: 8341907: javac -Xlint should ignore /// on first line of source file [v2]
Jonathan Gibbons
jjg at openjdk.org
Thu Nov 7 00:11:41 UTC 2024
On Wed, 6 Nov 2024 22:58:21 GMT, Pavel Rappo <prappo at openjdk.org> wrote:
> If you propose such a way, I'd happily incorporate it.
Does the content of the comment (`c.getText()`) contain a newline character that is not at the end of the content? Maybe something like
`c.getText().matches("(?s)\\R.")`
although there may be more effective ways to do that.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21923#discussion_r1831878566
More information about the compiler-dev
mailing list