Uses of Interface
edu.umd.cs.findbugs.Detector
Packages that use Detector
Package
Description
Main package for the FindBugs application - contains the engine class
(
FindBugs), the object model classes for bug
instances (BugInstance,
BugAnnotation), and other miscellany.A bytecode analysis framework for BCEL, providing CFG construction, generic
dataflow analysis, and a variety of specific dataflow analyses.
-
Uses of Detector in edu.umd.cs.findbugs
Classes in edu.umd.cs.findbugs that implement DetectorModifier and TypeClassDescriptionclassA base class for bug detectors that are based on a ByteCodePattern.classBase class for Detectors which want to extend DismantleBytecode.(package private) static classclassResourceTrackingDetector<Resource, ResourceTrackerType extends ResourceTracker<Resource>>Abstract implementation of a Detector to find methods where a particular kind of created resource is not cleaned up or closed properly.Fields in edu.umd.cs.findbugs declared as DetectorMethods in edu.umd.cs.findbugs that return DetectorModifier and TypeMethodDescriptionDetectorFactory.create(BugReporter bugReporter) Deprecated.Use createDetector2 in new codeDetectorFactory.ReflectionDetectorCreator.createDetector(BugReporter bugReporter) Constructors in edu.umd.cs.findbugs with parameters of type DetectorModifierConstructorDescriptionBugInstance(Detector detector, String type, int priority) Create a new BugInstance.DetectorToDetector2Adapter(Detector detector) Constructor. -
Uses of Detector in edu.umd.cs.findbugs.ba
Classes in edu.umd.cs.findbugs.ba that implement DetectorModifier and TypeClassDescription(package private) static class(package private) static class -
Uses of Detector in edu.umd.cs.findbugs.bcel
Classes in edu.umd.cs.findbugs.bcel that implement DetectorModifier and TypeClassDescriptionclassBase class for Detectors which want to perform a preorder traversal of the classfile including visiting Annotations.classBase class for Detectors that want to scan the bytecode of a method and use an opcode stack.static classclassBase class for Detectors which want to perform a preorder traversal of the classfile. -
Uses of Detector in edu.umd.cs.findbugs.detect
Classes in edu.umd.cs.findbugs.detect that implement DetectorModifier and TypeClassDescriptionclassAbstract base class for finding assertionsclassclassif we get from a ConcurrentHashMap and assign to a variable...classclassclassclassclassclassclassclassBuild the interprocedural call graph.classBuilds the database of string parameters passed from method to method unchanged.classBuild database of unconditionally dereferenced parameters.classDetector to find private methods that are never called.classclassclassclassThis is just for debugging method call resolution.classclassclassclassclassclassThis detector can find constructors that throw exception.classclassclassclassFinds invocations of JDK methods that rely on the default platform encoding.classclassA detector that checks for lines in JUnit tests that look like `assertTrue(object instanceof Class)` and discourages them.classclassclassclassclassclassclassclassclassclassclassThis detector is currently disabled by default.classclassclassclassclassThis detector can find Assertions that try to validate method arguments.classThis detector can find assertions that violate the EXP06 rule.classclassclassclassclassclassclassFind dead stores to local variables.classclassclassclassclassclassclassclassThis detector finds all the methods of a subclass which are hiding the static methods of the superclass.classFind instance fields which are sometimes accessed (read or written) with the receiver lock held and sometimes without.classfinal classFind places where ordinary (balanced) synchronization is performed on JSR166 Lock objects.classclassfinal classclassclassclassclassclassclassA Detector to find instructions where a NullPointerException might be raised.classfinal classA Detector to look for streams that are opened in a method, do not escape the method, and are not closed on all paths out of the method.classclassclassclassclassFind suspicious reference comparisons.classclassclassclassclassclassFind calls to Thread.sleep() made with a lock held.classclassFind potential SQL injection vulnerabilities.final classclassDetector to find private methods that are never called.classclassclassclassclassclassA Detector to look for useless control flow.classclassclassThis detector finds all the vulnerable methods which uses Security Manager to perform some security check but are declared non-final and non-private in a non-final class.classclassclassclassclassFind comparisons involving values computed with bitwise operations whose outcomes are fixed at compile time.classclassUse whenever possible String.indexOf(int) instead of String.indexOf(String), or String.lastIndexOf(int) instead of String.lastIndexOf(String).classclassclassFind occurrences of collection.toArray( new Foo[0] ); This causes another memory allocation through reflection Much better to do collection.toArray( new Foo[collection.size()] );classclassclassclassclassclassclassclassclassfinal classclassclassWe found a problem with the new OpenJDK that everyone is now using to compile and run java code.classLook for calls to methods where the return value is erroneously ignored.classclassclassclassclassclassclassclassclassA Detector to find instructions where a NullPointerException might be raised.classclassScan classes for @CheckReturnValue annotationsclassScan methods for directly-relevant type qualifiers, building the DirectlyRelevantTypeQualifiersDatabase.classclassDeprecated.AnnotationDatabases are being phased out, since annotations are now stored directly in the XClass/XMethod/XField objects.classAs a first scanning pass, make a note of unconditionally dereferenced parameters for later use by FindNullDerefs.classclassMake a note of unconditionally dereferenced parameters for later use by FindNullDerefs.classDetector to find calls to Number constructors with base type argument in Java 5 or newer bytecode.classMethods with "Optional" return type should never return null.classclassclassclassclassfinds public classes that use 'this' as a semaphore, which can cause conflicts if clients of this class use an instance of this class as their own synchronization point.classclassclassclassclassclassclassDetector to find private methods that are never called.classclassclassclassRuntimeExceptionCaptureclassclassclassclassDetector for static fields of typeCalendarorDateFormatand their subclasses.classFind occurrences of using the String "+" or "+=" operators within a loop.classFind occurrences of a instanceof b where it can be determined statically whether this is true or false.classlooks for calls to Thread.interrupted from a non static context, especially when that context is not 'currentThread()'.classclassclassclassclassclassclassclassclassBuild a database of reference types stored into fields.classclassDeprecated.AnnotationDatabases are being phased out, since annotations are now stored directly in the XClass/XMethod/XField objects.classTraining pass to find method parameters which are unconditionally dereferenced.classBase class for simple type checking detectors which tests if the method returns null references for specific types.classclassclassFind occurrences of Math using constants, where the result of the calculation can be determined statically.classclassequals and hashCode are blocking methods on URL's.classclassclassclassclassclassclass -
Uses of Detector in edu.umd.cs.findbugs.plan
Methods in edu.umd.cs.findbugs.plan that return DetectorModifier and TypeMethodDescriptionDetector[]AnalysisPass.instantiateDetectorsInPass(BugReporter bugReporter) Deprecated.call instantiateDetector2sInPass() insteadMethod parameters in edu.umd.cs.findbugs.plan with type arguments of type Detector