Annotation Type DesireWarning


@Retention(CLASS) public @interface DesireWarning
Annotation indicating that a FindBugs warning is desired. See http://code.google.com/p/findbugs/wiki/FindbugsTestCases
Author:
David Hovemeyer
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The value indicates the bug code (e.g., NP) or bug pattern (e.g., IL_INFINITE_LOOP) of the desired warning
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Want a warning at this priority or higher
    int
    Desire at least this many warnings
    int
    Desire a warning at least this scary
  • Element Details

    • value

      String value
      The value indicates the bug code (e.g., NP) or bug pattern (e.g., IL_INFINITE_LOOP) of the desired warning
    • confidence

      Confidence confidence
      Want a warning at this priority or higher
      Default:
      LOW
    • rank

      int rank
      Desire a warning at least this scary
      Default:
      20
    • num

      int num
      Desire at least this many warnings
      Default:
      1