Annotation Type SuppressFBWarnings


  • @Retention(CLASS)
    public @interface SuppressFBWarnings
    Used to suppress FindBugs warnings. It should be used instead of SuppressWarnings to avoid conflicts with SuppressWarnings.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String justification
      Optional documentation of the reason why the warning is suppressed.
      java.lang.String[] value
      The set of FindBugs warnings that are to be suppressed in annotated element.
    • Element Detail

      • value

        java.lang.String[] value
        The set of FindBugs warnings that are to be suppressed in annotated element. The value can be a bug category, kind or pattern.
        Returns:
        The FindBugs warnings to ignore.
        Default:
        {}
      • justification

        java.lang.String justification
        Optional documentation of the reason why the warning is suppressed.
        Returns:
        The reason the FindBugs warnings were ignored.
        Default:
        ""