From 826f5e900c913d2b8ce53ee962dd7a4ad8bd169f Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Mon, 3 Oct 2022 09:07:59 +0300 Subject: [PATCH] Remove erroneous RESTEasy Classic import from ResteasyReactiveViolationExceptionMapper --- .../jaxrs/ResteasyReactiveViolationExceptionMapper.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ResteasyReactiveViolationExceptionMapper.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ResteasyReactiveViolationExceptionMapper.java index ec3f4912b1f69b..86f10686fcb2c7 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ResteasyReactiveViolationExceptionMapper.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ResteasyReactiveViolationExceptionMapper.java @@ -18,11 +18,11 @@ import javax.ws.rs.ext.ExceptionMapper; import javax.ws.rs.ext.Provider; -import org.jboss.resteasy.api.validation.Validation; - @Provider public class ResteasyReactiveViolationExceptionMapper implements ExceptionMapper { + private static final String VALIDATION_HEADER = "validation-exception"; + @Context HttpHeaders headers; @@ -69,7 +69,7 @@ private boolean isReturnValueViolation(ConstraintViolation violation) { private Response buildViolationReportResponse(ConstraintViolationException cve) { Status status = Status.BAD_REQUEST; Response.ResponseBuilder builder = Response.status(status); - builder.header(Validation.VALIDATION_HEADER, "true"); + builder.header(VALIDATION_HEADER, "true"); // Check standard media types. MediaType mediaType = ValidatorMediaTypeUtil.getAcceptMediaTypeFromSupported(headers.getAcceptableMediaTypes());