From c65705e5e1324ca4b782a328623ea623395bb51e Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Tue, 19 Apr 2022 18:05:38 +0200 Subject: [PATCH] HV-1900 Add annotation TypeCheck to parameter checks in AnnotationProcessor --- .../validator/ap/internal/checks/ConstraintCheckFactory.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/annotation-processor/src/main/java/org/hibernate/validator/ap/internal/checks/ConstraintCheckFactory.java b/annotation-processor/src/main/java/org/hibernate/validator/ap/internal/checks/ConstraintCheckFactory.java index c10d839a0f..d60049007a 100644 --- a/annotation-processor/src/main/java/org/hibernate/validator/ap/internal/checks/ConstraintCheckFactory.java +++ b/annotation-processor/src/main/java/org/hibernate/validator/ap/internal/checks/ConstraintCheckFactory.java @@ -72,6 +72,7 @@ public ConstraintCheckFactory(Types typeUtils, Elements elementUtils, Constraint parameterChecks.put( AnnotationType.CONSTRAINT_ANNOTATION, new SingleValuedChecks( + new TypeCheck( constraintHelper, typeUtils, annotationApiHelper ), new AnnotationParametersSizeLengthCheck( annotationApiHelper ), new AnnotationParametersPatternCheck( annotationApiHelper ), new AnnotationParametersScriptAssertCheck( annotationApiHelper ), @@ -84,6 +85,7 @@ public ConstraintCheckFactory(Types typeUtils, Elements elementUtils, Constraint AnnotationType.MULTI_VALUED_CONSTRAINT_ANNOTATION, new MultiValuedChecks( constraintHelper, + new TypeCheck( constraintHelper, typeUtils, annotationApiHelper ), new AnnotationParametersSizeLengthCheck( annotationApiHelper ), new AnnotationParametersPatternCheck( annotationApiHelper ), new AnnotationParametersScriptAssertCheck( annotationApiHelper ),