From f48c40464ec42d420afae452e6565bf04d1c0e54 Mon Sep 17 00:00:00 2001 From: Aayush Atharva Date: Thu, 7 Sep 2023 02:04:14 +0530 Subject: [PATCH] Remove Deprecated Methods (#1906) --- client/src/main/java/org/asynchttpclient/Request.java | 1 - .../main/java/org/asynchttpclient/RequestBuilder.java | 11 +---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/client/src/main/java/org/asynchttpclient/Request.java b/client/src/main/java/org/asynchttpclient/Request.java index ecb40678c..64977cf71 100644 --- a/client/src/main/java/org/asynchttpclient/Request.java +++ b/client/src/main/java/org/asynchttpclient/Request.java @@ -186,7 +186,6 @@ public interface Request { /** * @return a new request builder using this request as a prototype */ - @SuppressWarnings("deprecation") default RequestBuilder toBuilder() { return new RequestBuilder(this); } diff --git a/client/src/main/java/org/asynchttpclient/RequestBuilder.java b/client/src/main/java/org/asynchttpclient/RequestBuilder.java index fed545a6f..9b4491ffc 100644 --- a/client/src/main/java/org/asynchttpclient/RequestBuilder.java +++ b/client/src/main/java/org/asynchttpclient/RequestBuilder.java @@ -39,16 +39,7 @@ public RequestBuilder(String method, boolean disableUrlEncoding, boolean validat super(method, disableUrlEncoding, validateHeaders); } - /** - * @deprecated Use request.toBuilder() instead - */ - @Deprecated - public RequestBuilder(Request prototype) { + RequestBuilder(Request prototype) { super(prototype); } - - @Deprecated - public RequestBuilder(Request prototype, boolean disableUrlEncoding, boolean validateHeaders) { - super(prototype, disableUrlEncoding, validateHeaders); - } }