Package edu.umd.cs.findbugs.detect
Class CheckExpectedWarnings
java.lang.Object
edu.umd.cs.findbugs.detect.CheckExpectedWarnings
- All Implemented Interfaces:
Detector2
,FirstPassDetector
,NonReportingDetector
,Priorities
@Deprecated
public class CheckExpectedWarnings
extends Object
implements Detector2, NonReportingDetector
Deprecated.
Check uses of the ExpectWarning and NoWarning annotations. This is for
internal testing of FindBugs (against spotbugsTestCases).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BugCollection
Deprecated.private static final boolean
Deprecated.private ClassDescriptor
Deprecated.private ClassDescriptor
Deprecated.private ClassDescriptor
Deprecated.private boolean
Deprecated.private ClassDescriptor
Deprecated.private BugReporter
Deprecated.private boolean
Deprecated.private Map
<ClassDescriptor, Collection<BugInstance>> Deprecated.private Map
<FieldDescriptor, Collection<BugInstance>> Deprecated.private Map
<MethodDescriptor, Collection<BugInstance>> Deprecated.Fields inherited from interface edu.umd.cs.findbugs.Priorities
EXP_PRIORITY, HIGH_PRIORITY, IGNORE_PRIORITY, LOW_PRIORITY, NORMAL_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
check
(XClass xclass, ClassDescriptor annotation, boolean expectWarnings, int priority) Deprecated.private void
check
(XField xfield, ClassDescriptor annotation, boolean expectWarnings, int priority) Deprecated.private void
check
(XMethod xmethod, ClassDescriptor annotation, boolean expectWarnings, int priority) Deprecated.private void
check
(AnnotationValue expect, Object descriptor, Collection<BugInstance> warnings, boolean expectWarnings, int priority, ClassDescriptor cd) Deprecated.void
checkAnnotation
(String bugCode, Collection<BugInstance> warnings, boolean expectWarnings, int priority, Integer rank, Integer num, Object methodDescriptor, int minPriority, ClassDescriptor cd) Deprecated.private static Collection
<SourceLineAnnotation> countWarnings
(Collection<BugInstance> warnings, String bugCode, int desiredPriority, int rank) Deprecated.void
Deprecated.This method is called at the end of the analysis pass.Deprecated.Get the name of the detector class.makeWarning
(String bugPattern, Object descriptor, int priority, ClassDescriptor cd) Deprecated.void
visitClass
(ClassDescriptor classDescriptor) Deprecated.Visit a class.
-
Field Details
-
DEBUG
private static final boolean DEBUGDeprecated. -
reporter
Deprecated. -
bugCollection
Deprecated. -
initialized
private boolean initializedDeprecated. -
warningsByClass
Deprecated. -
warningsByMethod
Deprecated. -
warningsByField
Deprecated. -
expectWarning
Deprecated. -
noWarning
Deprecated. -
desireWarning
Deprecated. -
desireNoWarning
Deprecated. -
warned
private boolean warnedDeprecated.
-
-
Constructor Details
-
CheckExpectedWarnings
Deprecated.
-
-
Method Details
-
visitClass
Deprecated.Description copied from interface:Detector2
Visit a class.- Specified by:
visitClass
in interfaceDetector2
- Parameters:
classDescriptor
- descriptor naming the class to visit- Throws:
CheckedAnalysisException
- if an exception occurs during analysis
-
check
Deprecated. -
check
private void check(XMethod xmethod, ClassDescriptor annotation, boolean expectWarnings, int priority) Deprecated. -
check
Deprecated. -
check
private void check(AnnotationValue expect, Object descriptor, Collection<BugInstance> warnings, boolean expectWarnings, int priority, ClassDescriptor cd) Deprecated. -
checkAnnotation
public void checkAnnotation(@CheckForNull String bugCode, Collection<BugInstance> warnings, boolean expectWarnings, int priority, Integer rank, Integer num, Object methodDescriptor, int minPriority, ClassDescriptor cd) Deprecated. -
makeWarning
public BugInstance makeWarning(String bugPattern, Object descriptor, int priority, ClassDescriptor cd) Deprecated. -
countWarnings
private static Collection<SourceLineAnnotation> countWarnings(Collection<BugInstance> warnings, @CheckForNull String bugCode, int desiredPriority, int rank) Deprecated. -
finishPass
public void finishPass()Deprecated.Description copied from interface:Detector2
This method is called at the end of the analysis pass.- Specified by:
finishPass
in interfaceDetector2
-
getDetectorClassName
Deprecated.Description copied from interface:Detector2
Get the name of the detector class.- Specified by:
getDetectorClassName
in interfaceDetector2
- Returns:
- the name of the detector class.
-
edu.umd.cs.findbugs.test.matcher.BugInstanceMatcher
matchers in test source directory