http-client-branch: (HttpClient) added a comment to the BadHeadersTest as suggested by dfuchs http-client-branch
authorprappo
Tue, 27 Feb 2018 16:44:39 +0000
branchhttp-client-branch
changeset 56206 a0cf7477d139
parent 56205 f4c9c5920141
child 56207 03c89ed2070f
http-client-branch: (HttpClient) added a comment to the BadHeadersTest as suggested by dfuchs
test/jdk/java/net/httpclient/http2/BadHeadersTest.java
--- a/test/jdk/java/net/httpclient/http2/BadHeadersTest.java	Tue Feb 27 16:08:08 2018 +0000
+++ b/test/jdk/java/net/httpclient/http2/BadHeadersTest.java	Tue Feb 27 16:44:39 2018 +0000
@@ -292,6 +292,13 @@
         }
     }
 
+    /*
+     * Use carefully. This class might not be suitable outside this test's
+     * context. Pay attention working with multi Map view returned from map().
+     * The reason is that header names must be lower-cased prior to any
+     * operation that depends on whether or not the map contains a specific
+     * element.
+     */
     private static class OrderedHttpHeaders extends HttpHeadersImpl {
 
         private final Map<String, List<String>> map = new LinkedHashMap<>();