Package edu.umd.cs.findbugs.util
Class MultiThreadedCodeIdentifierUtils
java.lang.Object
edu.umd.cs.findbugs.util.MultiThreadedCodeIdentifierUtils
Utility class with methods to identify multithreaded code
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
hasMultiThreadedInstruction
(org.apache.bcel.generic.MethodGen methodGen) private static boolean
isConcurrentLockInterfaceCall
(String className, String methodName) private static boolean
isFieldIndicatingMultiThreadedContainer
(org.apache.bcel.classfile.Field field) private static boolean
isFromAtomicPackage
(String signature) private static boolean
isInstanceOfLock
(String className) static boolean
isLocked
(org.apache.bcel.classfile.Method currentMethod, CFG currentCFG, LockDataflow currentLockDataFlow, int pc) static boolean
isMethodMultiThreaded
(org.apache.bcel.classfile.Method method, ClassContext classContext) static boolean
isPartOfMultiThreadedCode
(ClassContext classContext)
-
Field Details
-
JAVA_LANG_RUNNABLE
- See Also:
-
ATOMIC_PACKAGE
- See Also:
-
-
Constructor Details
-
MultiThreadedCodeIdentifierUtils
private MultiThreadedCodeIdentifierUtils()
-
-
Method Details
-
isPartOfMultiThreadedCode
-
isMethodMultiThreaded
public static boolean isMethodMultiThreaded(org.apache.bcel.classfile.Method method, ClassContext classContext) -
hasMultiThreadedInstruction
private static boolean hasMultiThreadedInstruction(org.apache.bcel.generic.MethodGen methodGen) -
isConcurrentLockInterfaceCall
private static boolean isConcurrentLockInterfaceCall(@DottedClassName String className, String methodName) -
isInstanceOfLock
-
isFieldIndicatingMultiThreadedContainer
private static boolean isFieldIndicatingMultiThreadedContainer(org.apache.bcel.classfile.Field field) -
isFromAtomicPackage
-
isLocked
public static boolean isLocked(org.apache.bcel.classfile.Method currentMethod, CFG currentCFG, LockDataflow currentLockDataFlow, int pc)
-