hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1791753 - in /httpcomponents/httpcore/trunk: RELEASE_NOTES.txt httpcore5/src/main/java/org/apache/hc/core5/http/impl/bootstrap/ServerBootstrap.java
Date Tue, 18 Apr 2017 07:31:27 GMT
Author: ggregory
Date: Tue Apr 18 07:31:27 2017
New Revision: 1791753

URL: http://svn.apache.org/viewvc?rev=1791753&view=rev
Log:
[HTTPCORE-453] ServerBootstrap should traverse handler map in insertion order.

Modified:
    httpcomponents/httpcore/trunk/RELEASE_NOTES.txt
    httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/impl/bootstrap/ServerBootstrap.java

Modified: httpcomponents/httpcore/trunk/RELEASE_NOTES.txt
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/RELEASE_NOTES.txt?rev=1791753&r1=1791752&r2=1791753&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/RELEASE_NOTES.txt (original)
+++ httpcomponents/httpcore/trunk/RELEASE_NOTES.txt Tue Apr 18 07:31:27 2017
@@ -13,6 +13,8 @@ Changelog
 
 * HTTPCORE-451: Add a TimeValue class to wrap a long and a TimeUnit.
   Contributed by Gary Gregory <ggregory at apache.org>
+  
+* HTTPCORE-453: ServerBootstrap should traverse handler map in insertion order.
 
 Release 5.0-ALPHA2
 -------------------

Modified: httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/impl/bootstrap/ServerBootstrap.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/impl/bootstrap/ServerBootstrap.java?rev=1791753&r1=1791752&r2=1791753&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/impl/bootstrap/ServerBootstrap.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/impl/bootstrap/ServerBootstrap.java
Tue Apr 18 07:31:27 2017
@@ -27,7 +27,7 @@
 package org.apache.hc.core5.http.impl.bootstrap;
 
 import java.net.InetAddress;
-import java.util.HashMap;
+import java.util.LinkedHashMap;
 import java.util.Map;
 
 import javax.net.ServerSocketFactory;
@@ -164,7 +164,7 @@ public class ServerBootstrap {
             return this;
         }
         if (handlerMap == null) {
-            handlerMap = new HashMap<>();
+            handlerMap = new LinkedHashMap<>();
         }
         handlerMap.put(pattern, handler);
         return this;



Mime
View raw message