edu.umd.cs.findbugs
Interface Detector
- All Known Subinterfaces:
- InterproceduralFirstPassDetector, NonReportingDetector, TrainingDetector
- All Known Implementing Classes:
- BadAppletConstructor, BadlyOverriddenAdapter, BadResultSetAccess, BadSyntaxForRegularExpression, BadUseOfReturnValue, BCPMethodReturnCheck, ByteCodePatternDetector, BytecodeScanningDetector, CheckCalls, CloneIdiom, ComparatorIdiom, ConfusedInheritance, ConfusionBetweenInheritedAndOuterMethod, DoInsideDoPriviledged, DontCatchIllegalMonitorStateException, DroppedException, DumbMethodInvocations, DumbMethods, DuplicateBranches, EmptyZipFileEntry, EqStringTest, FindBadCast, FindBadCast2, FindBadEqualsImplementation, FindBadForLoop, FindBugsSummaryStats, FindCircularDependencies, FindDeadLocalStores, FindDoubleCheck, FindEmptySynchronizedBlock, FindFieldSelfAssignment, FindFinalizeInvocations, FindFloatEquality, FindFloatMath, FindHEmismatch, FindInconsistentSync2, FindJSR166LockMonitorenter, FindLocalSelfAssignment2, FindMaskedFields, FindMismatchedWaitOrNotify, FindNakedNotify, FindNonSerializableStoreIntoSession, FindNonSerializableValuePassedToWriteObject, FindNonShortCircuit, FindNullDeref, FindOpenStream, FindPuzzlers, FindRefComparison, FindReturnRef, FindRunInvocations, FindSleepWithLockHeld, FindSpinLoop, FindSqlInjection, FindTwoLockWait, FindUncalledPrivateMethods, FindUnconditionalWait, FindUninitializedGet, FindUnreleasedLock, FindUnsatisfiedObligation, FindUnsyncGet, FindUselessControlFlow, IDivResultCastToDouble, IncompatMask, InefficientMemberAccess, InefficientToArray, InfiniteLoop, InfiniteRecursiveLoop, InfiniteRecursiveLoop2, InheritanceUnsafeGetResource, InitializationChain, InstantiateStaticClass, InvalidJUnitTest, IteratorIdioms, LazyInit, LoadOfKnownNullValue, LockedFields, MethodReturnCheck, Methods, MultithreadedInstanceAccess, MutableLock, MutableStaticFields, Naming, NoteCheckReturnValue, NoteCheckReturnValueAnnotations, NoteNonNullAnnotations, NoteSuppressedWarnings, NoteUnconditionalParamDerefs, PreferZeroLengthArrays, PublicSemaphores, QuestionableBooleanAssignment, ReadReturnShouldBeChecked, RedundantInterfaces, ResolveAllReferences, ResourceTrackingDetector, RuntimeExceptionCapture, SerializableIdiom, StartInConstructor, StringConcatenation, SuperfluousInstanceOf, SuspiciousThreadInterrupted, SwitchFallthrough, TestingGround, TrainFieldStoreTypes, TrainNonNullAnnotations, TrainUnconditionalDerefParams, UnnecessaryMath, UnreadFields, UselessSubclassMethod, UseObjectEquals, VarArgsProblems, VolatileUsage, WaitInLoop, WrongMapIterator, XMLFactoryBypass
public interface Detector
The interface which all bug pattern detectors must implement.
Method Summary |
void |
report()
This method is called after all classes to be visited. |
void |
visitClassContext(ClassContext classContext)
Visit the ClassContext for a class which should be analyzed
for instances of bug patterns. |
IGNORE_PRIORITY
static final int IGNORE_PRIORITY
- priority for bug instances that should be ignored
- See Also:
- Constant Field Values
EXP_PRIORITY
static final int EXP_PRIORITY
- Experimental priority for bug instances.
- See Also:
- Constant Field Values
LOW_PRIORITY
static final int LOW_PRIORITY
- Low priority for bug instances.
- See Also:
- Constant Field Values
NORMAL_PRIORITY
static final int NORMAL_PRIORITY
- Normal priority for bug instances.
- See Also:
- Constant Field Values
HIGH_PRIORITY
static final int HIGH_PRIORITY
- High priority for bug instances.
- See Also:
- Constant Field Values
visitClassContext
void visitClassContext(ClassContext classContext)
- Visit the ClassContext for a class which should be analyzed
for instances of bug patterns.
- Parameters:
classContext
- the ClassContext
report
void report()
- This method is called after all classes to be visited.
It should be used by any detectors which accumulate information
over all visited classes to generate results.