Skip to content

US_USELESS_SUPPRESSION_ON_* should report which annotation is useless #3395

@kohlschuetter

Description

@kohlschuetter

Using spotbugs-maven-plugin 4.9.3.0 , I get warnings like:

[ERROR] Medium: Suppressing annotation on the method ... is unnecessary [...] At ...:[lines 74-77] US_USELESS_SUPPRESSION_ON_METHOD

However, if there is more than one suppressed annotation, it's a guessing game which annotation was actually useless.

Can the error include the useless annotation(s) please?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions