Package edu.umd.cs.findbugs.annotations
Annotation Interface SuppressFBWarnings
Used to suppress FindBugs warnings.
It should be used instead of
SuppressWarnings to avoid conflicts with
SuppressWarnings.-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionOptional documentation of the reason why the warning is suppressedBy defaultSuppressFBWarningsannotations suppress bugs by prefix, for instance@SuppressFBWarnings(value = "EI_EXPO", justification = "It's OK")will suppress bugs of typeEI_EXPOSE_REPandEI_EXPOSE_REP2.String[]The set of FindBugs warnings that are to be suppressed in annotated element.
-
Element Details
-
value
String[] valueThe set of FindBugs warnings that are to be suppressed in annotated element. The value can be a bug category, kind or pattern.- Default:
{}
-
justification
String justificationOptional documentation of the reason why the warning is suppressed- Default:
""
-
matchType
SuppressMatchType matchTypeBy default
SuppressFBWarningsannotations suppress bugs by prefix, for instance@SuppressFBWarnings(value = "EI_EXPO", justification = "It's OK")will suppress bugs of typeEI_EXPOSE_REPandEI_EXPOSE_REP2.You might use
@SuppressFBWarnings(value = "EI_EXPOSE_REP", justification = "It's OK", matchType=EXACT)to suppressEI_EXPOSE_REP, but notEI_EXPOSE_REP2.Regular expressions are also supported with
matchType=REGEX.- See Also:
- Default:
DEFAULT
-