summaryrefslogtreecommitdiff
path: root/gnu/java/net/protocol/http/SimpleCookieManager.java
diff options
context:
space:
mode:
authorDavid Daney <ddaney@avtrex.com>2006-12-22 00:40:22 +0000
committerDavid Daney <ddaney@avtrex.com>2006-12-22 00:40:22 +0000
commitfcdcafaa353f0eebbde18b09c99d6ac1545ab0e1 (patch)
treecfd06cf60dc8ed4f1a21b60d77248a19c83109c7 /gnu/java/net/protocol/http/SimpleCookieManager.java
parentd9fc3954e00c9406fdc1f2e995002dfc6d3c76a3 (diff)
downloadclasspath-fcdcafaa353f0eebbde18b09c99d6ac1545ab0e1.tar.gz
* gnu/java/net/protocol/http/Headers.java: Update imports. Implement
Iterable<Headers.HeaderElement>. (iterator): Make public. * gnu/java/net/protocol/http/Request.java (dispatch): Use enhanced for loop. (notifyHeaderHandlers): Same. * gnu/java/net/protocol/http/SimpleCookieManager.java (addCookies): Remove unneeded cast.
Diffstat (limited to 'gnu/java/net/protocol/http/SimpleCookieManager.java')
-rw-r--r--gnu/java/net/protocol/http/SimpleCookieManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/java/net/protocol/http/SimpleCookieManager.java b/gnu/java/net/protocol/http/SimpleCookieManager.java
index 31f10ec44..fe05ba09e 100644
--- a/gnu/java/net/protocol/http/SimpleCookieManager.java
+++ b/gnu/java/net/protocol/http/SimpleCookieManager.java
@@ -1,5 +1,5 @@
/* CookieManager.java --
- Copyright (C) 2004 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2006 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -110,7 +110,7 @@ public class SimpleCookieManager
ArrayList<String> expired = new ArrayList<String>();
for (Map.Entry<String, Cookie> entry : map.entrySet())
{
- Cookie cookie = (Cookie) entry.getValue();
+ Cookie cookie = entry.getValue();
Date expires = cookie.getExpiryDate();
if (expires != null && expires.before(now))
{