10000 HV-1900 Add annotation TypeCheck to parameter checks in AnnotationPro… · hibernate/hibernate-validator@3ee1baa · GitHub
[go: up one dir, main page]

Skip to content

Commit 3ee1baa

Browse files
committed
HV-1900 Add annotation TypeCheck to parameter checks in AnnotationProcessor
1 parent 43f60f9 commit 3ee1baa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

annotation-processor/src/main/java/org/hibernate/validator/ap/internal/checks/ConstraintCheckFactory.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public ConstraintCheckFactory(Types typeUtils, Elements elementUtils, Constraint
7272
parameterChecks.put(
7373
AnnotationType.CONSTRAINT_ANNOTATION,
7474
new SingleValuedChecks(
75+
new TypeCheck( constraintHelper, typeUtils, annotationApiHelper ),
7576
new AnnotationParametersSizeLengthCheck( annotationApiHelper ),
7677
new AnnotationParametersPatternCheck( annotationApiHelper ),
7778
new AnnotationParametersScriptAssertCheck( annotationApiHelper ),
@@ -84,6 +85,7 @@ public ConstraintCheckFactory(Types typeUtils, Elements elementUtils, Constraint
8485
AnnotationType.MULTI_VALUED_CONSTRAINT_ANNOTATION,
8586
new MultiValuedChecks(
8687
constraintHelper,
88+
new TypeCheck( constraintHelper, typeUtils, annotationApiHelper ),
8789
new AnnotationParametersSizeLengthCheck( annotationApiHelper ),
8890
new AnnotationParametersPatternCheck( annotationApiHelper ),
8991
new AnnotationParametersScriptAssertCheck( annotationApiHelper ),

0 commit comments

Comments
 (0)
0