Class CollectionAnalysis
java.lang.Object
edu.umd.cs.findbugs.util.CollectionAnalysis
Utility class for analyzing collections.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePrivate constructor to prevent instantiation, because it is a utility class. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisSynchronizedCollection(ClassMember classMember) Check if a class member is a synchronized collection.static booleanisSynchronizedCollection(String className, String methodName) Checks if a method is a synchronized collection creating one.
-
Constructor Details
-
CollectionAnalysis
private CollectionAnalysis()Private constructor to prevent instantiation, because it is a utility class.
-
-
Method Details
-
isSynchronizedCollection
Check if a class member is a synchronized collection.- Parameters:
classMember- the class member- Returns:
trueif the class member is a synchronized collection,falseotherwise
-
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:
trueif it's a synchronized collection creating method,falseotherwise
-