From fcdcafaa353f0eebbde18b09c99d6ac1545ab0e1 Mon Sep 17 00:00:00 2001 From: David Daney Date: Fri, 22 Dec 2006 00:40:22 +0000 Subject: * gnu/java/net/protocol/http/Headers.java: Update imports. Implement Iterable. (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. --- gnu/java/net/protocol/http/SimpleCookieManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/java/net/protocol/http/SimpleCookieManager.java') 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 expired = new ArrayList(); for (Map.Entry entry : map.entrySet()) { - Cookie cookie = (Cookie) entry.getValue(); + Cookie cookie = entry.getValue(); Date expires = cookie.getExpiryDate(); if (expires != null && expires.before(now)) { -- cgit v1.2.1