Uses of Class
edu.umd.cs.findbugs.visitclass.DismantleBytecode
Packages that use DismantleBytecode
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 DismantleBytecode in edu.umd.cs.findbugs
Subclasses of DismantleBytecode in edu.umd.cs.findbugsModifier and TypeClassDescriptionclassBase class for Detectors which want to extend DismantleBytecode.(package private) static classFields in edu.umd.cs.findbugs declared as DismantleBytecodeMethods in edu.umd.cs.findbugs with parameters of type DismantleBytecodeModifier and TypeMethodDescriptionBugInstance.addCalledMethod(DismantleBytecode visitor) Add a method annotation for the method which has been called by the method currently being visited by given visitor.BugInstance.addOptionalLocalVariable(DismantleBytecode dbc, OpcodeStack.Item item) Local variable addersBugInstance.addReferencedField(DismantleBytecode visitor) Add a field annotation for the field which has just been accessed by the method currently being visited by given visitor.BugInstance.addValueSource(OpcodeStack.Item item, DismantleBytecode dbc) voidSwitchHandler.enterSwitch(DismantleBytecode dbc, XClass enumType) static MethodAnnotationMethodAnnotation.fromCalledMethod(DismantleBytecode visitor) Factory method to create a MethodAnnotation from a method called by the instruction the given visitor is currently visiting.static FieldAnnotationFieldAnnotation.fromReferencedField(DismantleBytecode visitor) Factory method.static StringOpcodeStack.getExceptionSig(DismantleBytecode dbc, org.apache.bcel.classfile.CodeException e) OpcodeStack.getItemMethodInvokedOn(DismantleBytecode dbc) static LocalVariableAnnotationLocalVariableAnnotation.getLocalVariableAnnotation(DismantleBytecode visitor, OpcodeStack.Item item) SwitchHandler.getNextSwitchDetails(DismantleBytecode dbc) intSwitchHandler.getNextSwitchOffset(DismantleBytecode dbc) private StringOpcodeStack.getStringFromIndex(DismantleBytecode dbc, int i) booleanSwitchHandler.isOnSwitchOffset(DismantleBytecode dbc) voidOpcodeStack.mergeJumps(DismantleBytecode dbc) voidOpcodeStack.precomputation(DismantleBytecode dbc) private voidOpcodeStack.processInvokeDynamic(DismantleBytecode dbc) private voidOpcodeStack.processMethodCall(DismantleBytecode dbc, int seen) private voidOpcodeStack.pushByConstant(DismantleBytecode dbc, org.apache.bcel.classfile.Constant c) private voidOpcodeStack.pushByIntMath(DismantleBytecode dbc, int seen, OpcodeStack.Item lhs, OpcodeStack.Item rhs) private voidOpcodeStack.pushByInvoke(DismantleBytecode dbc, boolean popThis) private voidOpcodeStack.pushByLocalObjectLoad(DismantleBytecode dbc, int register) private voidOpcodeStack.pushBySignature(String s, DismantleBytecode dbc) intOpcodeStack.resetForMethodEntry(DismantleBytecode visitor) voidOpcodeStack.sawOpcode(DismantleBytecode dbc, int seen) -
Uses of DismantleBytecode in edu.umd.cs.findbugs.ba
Subclasses of DismantleBytecode in edu.umd.cs.findbugs.baModifier and TypeClassDescription(package private) static class(package private) static classMethods in edu.umd.cs.findbugs.ba with parameters of type DismantleBytecodeModifier and TypeMethodDescriptionstatic XFieldXFactory.createReferencedXField(DismantleBytecode visitor) static XMethodXFactory.createReferencedXMethod(DismantleBytecode visitor) -
Uses of DismantleBytecode in edu.umd.cs.findbugs.bcel
Subclasses of DismantleBytecode in edu.umd.cs.findbugs.bcelModifier and TypeClassDescriptionclassBase class for Detectors that want to scan the bytecode of a method and use an opcode stack.static class -
Uses of DismantleBytecode in edu.umd.cs.findbugs.detect
Subclasses of DismantleBytecode in edu.umd.cs.findbugs.detectModifier 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.classDetector to find private methods that are never called.classclassclassclassThis 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.classclassclassclassclassThis 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.classclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassDetector to find private methods that are never called.classclassclassclassA Detector to look for useless control flow.classThis 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.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.classclassclassclassclassclassclassScan methods for directly-relevant type qualifiers, building the DirectlyRelevantTypeQualifiersDatabase.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.classclassclassclassclassDetector to find private methods that are never called.classclassclassRuntimeExceptionCaptureclassclassclassclassDetector 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()'.classclassclassclassclassclassclassclassclassBase 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.classclassclassclassclassclass