Class DeprecationReporter

java.lang.Object
org.apache.rat.DeprecationReporter

public final class DeprecationReporter extends Object
Reporting methods for deprecated objects.
  • Method Details

    • getDefault

      public static Consumer<org.apache.commons.cli.Option> getDefault()
      Get the default reporter.
      Returns:
      The default reporter.
    • getLogReporter

      public static Consumer<org.apache.commons.cli.Option> getLogReporter()
      Creates the consumer that will log usage of deprecated operations to the default log.
      Returns:
      The consumer that will log usage of deprecated operations to the default log.
    • setLogReporter

      public static void setLogReporter(Consumer<org.apache.commons.cli.Option> consumer)
      Sets the consumer that will do the reporting.
      Parameters:
      consumer - The consumer that will do the reporting.
    • resetLogReporter

      public static void resetLogReporter()
      Rests the consumer to the default consumer.
    • logDeprecated

      public static void logDeprecated(Class<?> clazz)
      Log Deprecated class use.
      Parameters:
      clazz - the Deprecated class to log
    • logDeprecated

      public static void logDeprecated(String name, String since, boolean forRemoval, String use)
      Log Deprecated class use.
      Parameters:
      name - The name of the deprecated tag
      since - The version where the deprecation was declared.
      forRemoval - If true then tag is scheduled for removal.
      use - What to use instead.