0

I endowed a static initializer with a javadoc comment. Now I face that checkstyle complains considering it an InvalidJavadocPosition.

Is this a bug or correct? If the latter how to document a static initializer??

user2609605
  • 419
  • 2
  • 14
  • *"Is this a bug or correct?"* - It is correct. *"If the latter how to document a static initializer??"* - Put the documentation in the class javadoc. Or in regular comments. If you are using static initializers in some way that *requires* javadoc documentation (i.e. it affects things outside of the class) then you are probably using static initializers inappropriately. – Stephen C Jun 30 '23 at 02:00

0 Answers0