< prev index next >
src/java.httpclient/share/classes/java/net/http/ResponseHeaders.java
Print this page
@@ -46,11 +46,11 @@
* The location of "Content-length" is recorded explicitly. Similar approach
* could be taken for other common headers.
*
* This class is not thread-safe
*/
-class ResponseHeaders implements HttpHeaders1 {
+class ResponseHeaders implements HttpHeaders {
static final int DATA_SIZE = 16 * 1024; // initial space for headers
static final int NUM_HEADERS = 50; // initial expected max number of headers
final HttpConnection connection;
@@ -366,14 +366,10 @@
l = populateMapEntry(name);
}
return Collections.unmodifiableList(l);
}
- @Override
- public void makeUnmodifiable() {
- }
-
// Delegates map to HashMap but converts keys to lower case
static class HeaderMap implements Map<String,List<String>> {
Map<String,List<String>> inner;
< prev index next >