From 333dfd157716657b47de0a57f5ded834abc31b50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Tue, 31 Dec 2024 10:02:00 +0100 Subject: [PATCH] Fix build failure --- .../servlet/mvc/method/annotation/MethodValidationTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/MethodValidationTests.java b/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/MethodValidationTests.java index bfee95c745e..544e37e31e1 100644 --- a/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/MethodValidationTests.java +++ b/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/MethodValidationTests.java @@ -41,7 +41,7 @@ import jakarta.validation.constraints.Size; import jakarta.validation.executable.ExecutableValidator; import jakarta.validation.metadata.BeanDescriptor; -import org.hibernate.validator.internal.engine.constraintvalidation.ConstraintValidatorFactoryImpl; +import org.hibernate.validator.constraintvalidation.spi.DefaultConstraintValidatorFactory; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -557,7 +557,7 @@ private static class TestConstraintValidatorFactory implements ConstraintValidat private final Map, ConstraintValidator> validators; - private final ConstraintValidatorFactory delegate = new ConstraintValidatorFactoryImpl(); + private final ConstraintValidatorFactory delegate = new DefaultConstraintValidatorFactory(); private TestConstraintValidatorFactory(ConstraintValidator... validators) { this.validators = new LinkedHashMap<>(validators.length);