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
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
isNotThreadSafe
(ClassContext classContext) static boolean
isPartOfMultiThreadedCode
(ClassContext classContext)
-
Method Details
-
isPartOfMultiThreadedCode
-
isMethodMultiThreaded
public static boolean isMethodMultiThreaded(org.apache.bcel.classfile.Method method, ClassContext classContext) -
isLocked
public static boolean isLocked(org.apache.bcel.classfile.Method currentMethod, CFG currentCFG, LockDataflow currentLockDataFlow, int pc) -
isNotThreadSafe
- Returns:
true
if the class is explicitly annotated withNotThreadSafe
to document that it is not thread safe
-