Class DeprecationUtils

java.lang.Object
edu.cmu.tetrad.util.DeprecationUtils

public final class DeprecationUtils extends Object
Utility for checking whether classes are marked @Deprecated.
  • Method Details

    • isClassDeprecated

      public static boolean isClassDeprecated(Class<?> clazz)
      Determines if the specified class is marked with the @Deprecated annotation.
      Parameters:
      clazz - the class to check; must not be null
      Returns:
      true if the class is annotated with @Deprecated, false otherwise
      Throws:
      IllegalArgumentException - if the provided class is null