Klasse Categories

java.lang.Object
edu.hm.hafner.analysis.Categories

public final class Categories extends Object
Provides convenience methods to detect categories.
Autor:
Ullrich Hafner
  • Felddetails

    • DEPRECATION

      public static final String DEPRECATION
      Category for warnings due to usage of deprecate API.
      Siehe auch:
    • PROPRIETARY_API

      public static final String PROPRIETARY_API
      Category for warnings due to the usage of proprietary API.
      Siehe auch:
    • JAVADOC

      public static final String JAVADOC
      Category for Javadoc warnings.
      Siehe auch:
    • OTHER

      public static final String OTHER
      Category for Other warnings.
      Siehe auch:
  • Methodendetails

    • guessCategory

      public static String guessCategory(@CheckForNull String message)
      Classifies the warning message: tries to guess a category from the warning message.
      Parameter:
      message - the message to check
      Gibt zurück:
      warning category, empty string if unknown
    • guessCategoryIfEmpty

      public static String guessCategoryIfEmpty(@CheckForNull String category, @CheckForNull String message)
      Returns a category for the current warning. If the provided category is not empty, then a capitalized string is returned. Otherwise the category is obtained from the specified message text.
      Parameter:
      category - the warning category (might be empty)
      message - the warning message
      Gibt zurück:
      the actual category