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 booleanisLocked(org.apache.bcel.classfile.Method currentMethod, CFG currentCFG, LockDataflow currentLockDataFlow, int pc) static booleanisMethodMultiThreaded(org.apache.bcel.classfile.Method method, ClassContext classContext) static booleanisNotThreadSafe(ClassContext classContext) static booleanisPartOfMultiThreadedCode(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:
trueif the class is explicitly annotated withNotThreadSafeto document that it is not thread safe
-