--- a/jdk/src/share/classes/java/net/CookieManager.java Thu Sep 15 14:10:30 2011 +0100
+++ b/jdk/src/share/classes/java/net/CookieManager.java Fri Sep 16 12:09:04 2011 -0700
@@ -249,7 +249,6 @@
return Collections.unmodifiableMap(cookieMap);
}
-
public void
put(URI uri, Map<String, List<String>> responseHeaders)
throws IOException
@@ -284,7 +283,7 @@
cookies = HttpCookie.parse(headerValue);
} catch (IllegalArgumentException e) {
// Bogus header, make an empty list and log the error
- cookies = java.util.Collections.EMPTY_LIST;
+ cookies = java.util.Collections.emptyList();
if (logger.isLoggable(PlatformLogger.SEVERE)) {
logger.severe("Invalid cookie for " + uri + ": " + headerValue);
}