You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "ryber (via GitHub)" <gi...@apache.org> on 2026/05/11 14:18:10 UTC
[I] More granular access to suppress warnings [maven-javadoc-plugin]
ryber opened a new issue, #1322:
URL: https://github.com/apache/maven-javadoc-plugin/issues/1322
### New feature, improvement proposal
Hello,
Currently when a class only has a default constructor that is not explicitly coded you get a warning of `"use of default constructor, which does not provide a comment"`. Currently the only way to "fix" this is to give the class a default constructor with a comment or to turn off missing warnings entirely with the `-missing ` flag which is broad and disables ALL missing things, including the ones I want.
I don't like the idea of having to put needless code in place ONLY to make a plugin happy. I would like to be able to suppress only this warning. Open to other suggestions as well.
Thanks you for your time on this project. It's really great.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] More granular access to suppress warnings [maven-javadoc-plugin]
Posted by "jeslie (via GitHub)" <gi...@apache.org>.
jeslie commented on issue #1322:
URL: https://github.com/apache/maven-javadoc-plugin/issues/1322#issuecomment-5201038864
If you use **lombok** to generate a `private` constructor you can't create a unit test for it: **Jacoco** recognizes the `@Generated` flag and doesn't complain BUT **Javadoc** complains about the lack of a comment for a default constructor. If you explicitly code a `private` constructor to give it a javadoc comment: **Javadoc** doesn't issue the prior warning BUT **Jacoco** (unit tests) complains about the constructor not being unit tested.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org