Skip to content

Do not report US_USELESS_SUPPRESSION_ON_METHOD on synthetic methods#3353

Merged
hazendaz merged 2 commits intospotbugs:masterfrom
gtoison:issue-3351
Mar 11, 2025
Merged

Do not report US_USELESS_SUPPRESSION_ON_METHOD on synthetic methods#3353
hazendaz merged 2 commits intospotbugs:masterfrom
gtoison:issue-3351

Conversation

@gtoison
Copy link
Copy Markdown
Contributor

@gtoison gtoison commented Mar 11, 2025

Synthetic methods inherit the @SuppressFBWarnings of their parent method, so these generated suppressions might be reported as US_USELESS_SUPPRESSION_ON_METHOD.
Ignoring synthetic methods should fix #3351

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

US_USELESS_SUPPRESSION_ON_METHOD broken when used with IT_NO_SUCH_ELEMENT

3 participants