Class CollectionAnalysis

java.lang.Object
edu.umd.cs.findbugs.util.CollectionAnalysis

public final class CollectionAnalysis extends Object
Utility class for analyzing collections.
  • Method Details

    • isSynchronizedCollection

      public static boolean isSynchronizedCollection(ClassMember classMember)
      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 method
      methodName - the name of the method
      Returns:
      true if it's a synchronized collection creating method, false otherwise