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

public @Interface DesireWarning

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 desired. 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()

Desire at least this many warnings

public int
rank()

Desire 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 desired 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()

Desire at least this many warnings

rankback to summary
public int rank()

Desire 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 desired warning