You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by gg...@apache.org on 2019/02/09 14:44:02 UTC

[httpcomponents-core] 01/01: UriPatternType clean up.

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

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

commit 8d3587250039071ad900456c04428f45d907b3e9
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Feb 9 09:43:55 2019 -0500

    UriPatternType clean up.
---
 .../java/org/apache/hc/core5/http/protocol/RequestHandlerRegistry.java  | 2 +-
 .../src/main/java/org/apache/hc/core5/http/protocol/UriPatternType.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/protocol/RequestHandlerRegistry.java b/httpcore5/src/main/java/org/apache/hc/core5/http/protocol/RequestHandlerRegistry.java
index 61ced60..6618806 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/protocol/RequestHandlerRegistry.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/protocol/RequestHandlerRegistry.java
@@ -87,7 +87,7 @@ public class RequestHandlerRegistry<T> implements HttpRequestMapper<T> {
     }
 
     public RequestHandlerRegistry() {
-        this(LOCALHOST, UriPatternType.BASIC);
+        this(LOCALHOST, UriPatternType.URI_PATTERN);
     }
 
     private LookupRegistry<T> getPatternMatcher(final String hostname) {
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/protocol/UriPatternType.java b/httpcore5/src/main/java/org/apache/hc/core5/http/protocol/UriPatternType.java
index 1ab9c85..35c5625 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/protocol/UriPatternType.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/protocol/UriPatternType.java
@@ -33,7 +33,7 @@ package org.apache.hc.core5.http.protocol;
 public enum UriPatternType {
 
     /**
-     * @deprecated Use {@link #URI_PATTERN_IN_ORDER}.
+     * @deprecated Use {@link #URI_PATTERN}.
      */
     @Deprecated
     BASIC,