Uses of Interface
edu.umd.cs.findbugs.visitclass.Constants2
Packages that use Constants2
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.
-
Uses of Constants2 in edu.umd.cs.findbugs
Classes in edu.umd.cs.findbugs that implement Constants2Modifier and TypeClassDescriptionclassBase class for Detectors which want to extend DismantleBytecode.classclasstracks the types and numbers of objects that are currently on the operand stack throughout the execution of method. -
Uses of Constants2 in edu.umd.cs.findbugs.bcel
Classes in edu.umd.cs.findbugs.bcel that implement Constants2Modifier 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 Constants2 in edu.umd.cs.findbugs.detect
Classes in edu.umd.cs.findbugs.detect that implement Constants2Modifier and TypeClassDescriptionclassclassif we get from a ConcurrentHashMap and assign to a variable...classclassclassclassclassclassclassScan application classes for CheckReturnValue annotations.classBuild the interprocedural call graph.classDeprecated.AnnotationDatabases are being phased out, since annotations are now stored directly in the XClass/XMethod/XField objects.classBuilds the database of string parameters passed from method to method unchanged.classDetector to find private methods that are never called.classclassclassclassclassclassclassclassclassclassclassFinds invocations of JDK methods that rely on the default platform encoding.classclassclassclassclassclassclassThis detector is currently disabled by default.classclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassDetector to find private methods that are never called.classclassclassclassA Detector to look for useless control flow.classclassclassclassclassFind comparisons involving values computed with bitwise operations whose outcomes are fixed at compile time.classUse 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()] );classclassclassclassclassclassclassclassclassclassWe 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.classclassclassclassclassclassclassclassclassScan 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.classclassDetector 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.classclassclassfinds 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.classclassclassclassclassDetector to find private methods that are never called.classclassclassRuntimeExceptionCaptureclassclassclassDetector 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()'.classclassclassclassclassclassclassclassclassDeprecated.AnnotationDatabases are being phased out, since annotations are now stored directly in the XClass/XMethod/XField objects.classBase class for simple type checking detectors which tests if the method returns null references for specific types.classclassFind occurrences of Math using constants, where the result of the calculation can be determined statically.classclassequals and hashCode are blocking methods on URL's.classclassclassclassclassclass -
Uses of Constants2 in edu.umd.cs.findbugs.visitclass
Classes in edu.umd.cs.findbugs.visitclass that implement Constants2Modifier and TypeClassDescriptionclassSubclass of PreorderVisitor that visits annotations on classes, fields, methods, and method parameters.classclassInterface to make the use of a visitor pattern programming style possible.