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 2026/07/15 10:35:43 UTC

(httpcomponents-client) 02/03: Replaced deprecated method with an equivalent one from PathSegmentCodec

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

ok2c pushed a commit to branch caching_redesign
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git

commit c3fc85663ca57d639b460282cfbacc0a5ade69ac
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Sun Jul 12 17:01:55 2026 +0200

    Replaced deprecated method with an equivalent one from PathSegmentCodec
---
 .../java/org/apache/hc/client5/http/rest/ResourceIfaceScanner.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/httpclient5-jakarta-rest-client/src/main/java/org/apache/hc/client5/http/rest/ResourceIfaceScanner.java b/httpclient5-jakarta-rest-client/src/main/java/org/apache/hc/client5/http/rest/ResourceIfaceScanner.java
index 21d26f166..1be23a429 100644
--- a/httpclient5-jakarta-rest-client/src/main/java/org/apache/hc/client5/http/rest/ResourceIfaceScanner.java
+++ b/httpclient5-jakarta-rest-client/src/main/java/org/apache/hc/client5/http/rest/ResourceIfaceScanner.java
@@ -47,7 +47,7 @@
 import org.apache.hc.core5.http.ContentType;
 import org.apache.hc.core5.http.message.MessageSupport;
 import org.apache.hc.core5.http.message.ParserCursor;
-import org.apache.hc.core5.net.URLEncodedUtils;
+import org.apache.hc.core5.net.PathSegmentCodec;
 import org.apache.hc.core5.util.Args;
 
 final class ResourceIfaceScanner {
@@ -110,7 +110,7 @@ static List<PathSegment> parsePathSegments(final String value) {
         if (value == null) {
             return Collections.emptyList();
         }
-        return URLEncodedUtils.parsePathSegments(value).stream()
+        return PathSegmentCodec.parsePathSegments(value).stream()
                 .map(e -> {
                     if (e.startsWith("{") && e.endsWith("}")) {
                         final String param = e.substring(1, e.length() - 1);