You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2023/12/13 08:24:01 UTC

(httpcomponents-core) 34/37: Fixed deprecation warnings

This is an automated email from the ASF dual-hosted git repository.

olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git

commit b4d6016f2ebb5319e1f7ff3df3a17bed16bd7aff
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Wed Oct 11 14:04:24 2023 +0200

    Fixed deprecation warnings
---
 .../main/java/org/apache/hc/core5/http/protocol/RequestTargetHost.java   | 1 +
 httpcore5/src/test/java/org/apache/hc/core5/net/TestURIBuilder.java      | 1 +
 2 files changed, 2 insertions(+)

diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/protocol/RequestTargetHost.java b/httpcore5/src/main/java/org/apache/hc/core5/http/protocol/RequestTargetHost.java
index feadc0cf3..dfb71b22d 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/protocol/RequestTargetHost.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/protocol/RequestTargetHost.java
@@ -65,6 +65,7 @@ public class RequestTargetHost implements HttpRequestInterceptor {
         super();
     }
 
+    @SuppressWarnings("deprecation")
     @Override
     public void process(final HttpRequest request, final EntityDetails entity, final HttpContext context)
             throws HttpException, IOException {
diff --git a/httpcore5/src/test/java/org/apache/hc/core5/net/TestURIBuilder.java b/httpcore5/src/test/java/org/apache/hc/core5/net/TestURIBuilder.java
index 4531d7290..31a567198 100644
--- a/httpcore5/src/test/java/org/apache/hc/core5/net/TestURIBuilder.java
+++ b/httpcore5/src/test/java/org/apache/hc/core5/net/TestURIBuilder.java
@@ -47,6 +47,7 @@ import org.hamcrest.CoreMatchers;
 import org.junit.jupiter.api.Assertions;
 import org.junit.jupiter.api.Test;
 
+@SuppressWarnings("deprecation")
 public class TestURIBuilder {
 
     private static final String CH_HELLO = "\u0047\u0072\u00FC\u0065\u007A\u0069\u005F\u007A\u00E4\u006D\u00E4";