We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94f3250 commit 331579cCopy full SHA for 331579c
src/main/java/org/javawebstack/validator/Validator.java
@@ -47,7 +47,7 @@ public class Validator {
47
}
48
49
public static void registerRuleType(String name, Class<? extends ValidationRule> type, Class<? extends Annotation> annotationClass) {
50
- if (!ruleAnnotationClasses.containsKey(type))
+ if (!ruleAnnotationClasses.containsKey(type) && annotationClass != null)
51
ruleAnnotationClasses.put(type, annotationClass);
52
try {
53
Constructor<? extends ValidationRule> constructor = type.getDeclaredConstructor(String[].class);
0 commit comments