In my project I have lombok which is set to add @SuppressFBWarnings onto all generated constructors/methods thought it's configuration:
// root lombok.config
lombok.extern.findbugs.addSuppressFBWarnings = true
After updating to SpotBugs 4.9.3 javac throws medium warnings US_USELESS_SUPPRESSION_ON_* on generated code.
I believe we should have some possibility to prevent generated code from being scanned.
May be disable all warnings including these ones on all code which annotated as @Generated (javax/jakarta?).
In my project I have lombok which is set to add
@SuppressFBWarningsonto all generated constructors/methods thought it's configuration:After updating to SpotBugs 4.9.3 javac throws medium warnings
US_USELESS_SUPPRESSION_ON_*on generated code.I believe we should have some possibility to prevent generated code from being scanned.
May be disable all warnings including these ones on all code which annotated as
@Generated(javax/jakarta?).