java.lang.Object
edu.hm.hafner.analysis.Categories
Provides convenience methods to detect categories.
- Autor:
- Ullrich Hafner
-
Feldübersicht
Felder -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic StringguessCategory(String message) Classifies the warning message: tries to guess a category from the warning message.static StringguessCategoryIfEmpty(String category, String message) Returns a category for the current warning.
-
Felddetails
-
DEPRECATION
Category for warnings due to usage of deprecate API.- Siehe auch:
-
PROPRIETARY_API
Category for warnings due to the usage of proprietary API.- Siehe auch:
-
JAVADOC
Category for Javadoc warnings.- Siehe auch:
-
OTHER
Category for Other warnings.- Siehe auch:
-
-
Methodendetails
-
guessCategory
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
-