-
Notifications
You must be signed in to change notification settings - Fork 3.6k
HHH-15846 Option to add @SuppressFBWarnings annotation on generated code #5790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
/** | ||
* @see "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html" | ||
*/ | ||
String[] value(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might be able to remove value()
. It works fine without it.
Thanks for your pull request! This pull request appears to follow the contribution rules. › This message was automatically generated. |
212c05b
to
94ac79f
Compare
@gavinking Are you able to review this PR, or any of the other contributors? 🙂 |
Hi, I don't know what |
Ah sorry, I got you mixed up with @Sanne. |
94ac79f
to
593995c
Compare
@NicklasWallgren Can you rebase this on main? And I will take a look. |
Also, the discussion mentioned |
@NicklasWallgren Could you explain how an annotation you are adding into Hibernate here in this PR somehow affects those other libraries? How do FindBugs, etc know to look for this annotation? Could we not just leverage |
@NicklasWallgren has not responded to Steve's questions, and the branch now has conflicts, so perhaps we can just close this? |
Please create a new PR once you're willing to fixup the issues. |
Lombok has an option to add
@SuppressFBWarnings
to generated code vialombok.extern.findbugs.addSuppressFBWarnings
.It would be really helpful if the hibernate gradle/maven enhance plugins would provide a similar option.
We're currently struggling with warnings related to hibernate generated code in our entities, in SpotBugs.
Discussion on GitHub
Enhance plugin - Option to add @SuppressFBWarnings annotation · Discussion #5668 · hibernate/hibernate-orm