From f2a4498fd296499c608eaf078aaf28d850df1326 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Witkowski?= Date: Mon, 30 Oct 2023 21:04:50 +0100 Subject: [PATCH] HttpProblem::getStatus() deprecated and marked for removal in next major version --- runtime/pom.xml | 4 ++-- .../com/tietoevry/quarkus/resteasy/problem/HttpProblem.java | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/runtime/pom.xml b/runtime/pom.xml index 2792dc91..83487761 100644 --- a/runtime/pom.xml +++ b/runtime/pom.xml @@ -150,9 +150,9 @@ maven-failsafe-plugin - + true - + **/*Benchmark.java diff --git a/runtime/src/main/java/com/tietoevry/quarkus/resteasy/problem/HttpProblem.java b/runtime/src/main/java/com/tietoevry/quarkus/resteasy/problem/HttpProblem.java index bcdd628e..f1ca2027 100644 --- a/runtime/src/main/java/com/tietoevry/quarkus/resteasy/problem/HttpProblem.java +++ b/runtime/src/main/java/com/tietoevry/quarkus/resteasy/problem/HttpProblem.java @@ -101,7 +101,11 @@ public int getStatusCode() { /** * Returns null if status code has no representation in Response.Status enum. + * + * @deprecated Replaced by {@link #getStatusCode()}, will be removed in 4.0.0 release as part of minimizing + * dependencies to JaxRS/JakartaRS classes. */ + @Deprecated(since = "3.1.0", forRemoval = true) public Response.StatusType getStatus() { return Response.Status.fromStatusCode(statusCode); }