edu.umd.cs.findbugs.annotations
Annotation Type ExpectWarning


@Retention(value=CLASS)
public @interface ExpectWarning

Annotation indicating that a FindBugs warning is expected. See http://code.google.com/p/findbugs/wiki/FindbugsTestCases

Author:
David Hovemeyer

Required Element Summary
 String value
          The value indicates the bug code (e.g., NP) or bug pattern (e.g., IL_INFINITE_LOOP) of the expected warning.
 
Optional Element Summary
 Confidence confidence
          Want a warning at this priority or higher
 int num
           
 int rank
          Expect a warning at least this scary
 

Element Detail

value

public abstract String value
The value indicates the bug code (e.g., NP) or bug pattern (e.g., IL_INFINITE_LOOP) of the expected warning. Can be a comma-separated list.

confidence

public abstract Confidence confidence
Want a warning at this priority or higher

Default:
edu.umd.cs.findbugs.annotations.Confidence.LOW

rank

public abstract int rank
Expect a warning at least this scary

Default:
20

num

public abstract int num
Default:
1


Copyright © 2012 Ness Computing, Inc.. All Rights Reserved.