Top Description Methods
edu.umd.cs.findbugs.annotations

public @Interface ExpectWarning

extends Annotation
Annotations
@Deprecated
@Retention:CLASS
Imports
java.lang.annotation.Retention, .RetentionPolicy

Deprecated

The annotation based approach is useless for lambdas. Write expectations using edu.umd.cs.findbugs.test.matcher.BugInstanceMatcher matchers in test source directory

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

Method Summary

Modifier and TypeMethod and Description
public Confidence
confidence()

Want a warning at this priority or higher

public int
num()

Expect at least this many warnings

public int
rank()

Expect a warning at least this scary

public String
value()

The value indicates the bug code (e.g., NP) or bug pattern (e.g., IL_INFINITE_LOOP) of the expected warning.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

confidenceback to summary
public Confidence confidence()

Want a warning at this priority or higher

numback to summary
public int num()

Expect at least this many warnings

rankback to summary
public int rank()

Expect a warning at least this scary

valueback to summary
public 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.