public class MissingExcludeReporter extends Object
This will only log a violation for a specific field/method once.
Constructor and Description |
---|
MissingExcludeReporter() |
Modifier and Type | Method and Description |
---|---|
static void |
reportExcludedField(Class<?> instanceClass,
Field field,
ExcludeFromRuleKey annotation)
Report a field that's being processed for rulekeys and is annotated with @
ExcludeFromRuleKey . |
static void |
reportExcludedMethod(Class<?> instanceClass,
Method method,
ExcludeFromRuleKey annotation)
Report a method that's being processed for rulekeys and is annotated with @
ExcludeFromRuleKey . |
static void |
reportFieldMissingAnnotation(Class<?> instanceClass,
Field field)
Report a field that's being processed for rulekeys and is missing both @
AddToRuleKey
and @ExcludeFromRuleKey . |
static void |
reportMethodMissingAnnotation(Class<?> instanceClass,
Method method)
Report a method that's being processed for rulekeys and is missing both @
AddToRuleKey
and @ExcludeFromRuleKey . |
public static void reportFieldMissingAnnotation(Class<?> instanceClass, Field field)
AddToRuleKey
and @ExcludeFromRuleKey
.public static void reportMethodMissingAnnotation(Class<?> instanceClass, Method method)
AddToRuleKey
and @ExcludeFromRuleKey
.public static void reportExcludedField(Class<?> instanceClass, Field field, ExcludeFromRuleKey annotation)
ExcludeFromRuleKey
.public static void reportExcludedMethod(Class<?> instanceClass, Method method, ExcludeFromRuleKey annotation)
ExcludeFromRuleKey
.