Package edu.umd.cs.findbugs.util
Class CollectionAnalysis
java.lang.Object
edu.umd.cs.findbugs.util.CollectionAnalysis
Utility class for analyzing collections.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isSynchronizedCollection
(ClassMember classMember) Check if a class member is a synchronized collection.static boolean
isSynchronizedCollection
(String className, String methodName) Checks if a method is a synchronized collection creating one.
-
Method Details
-
isSynchronizedCollection
Check if a class member is a synchronized collection.- Parameters:
classMember
- the class member- Returns:
true
if the class member is a synchronized collection,false
otherwise
-
isSynchronizedCollection
public static boolean isSynchronizedCollection(@DottedClassName String className, String methodName) Checks if a method is a synchronized collection creating one.- Parameters:
className
- name of the class containing the methodmethodName
- the name of the method- Returns:
true
if it's a synchronized collection creating method,false
otherwise
-