olegk       2003/09/13 03:04:40

  Modified:    httpclient/src/test-webapp/src/org/apache/commons/httpclient
                        ReadCookieServlet.java
  Log:
  PR #22340 (In J2SDK 1.5.0 (Tiger) enum is a keyword)
  
  Contributed by Oleg Kalnichevski
  
  Revision  Changes    Path
  1.5       +6 -6      
jakarta-commons/httpclient/src/test-webapp/src/org/apache/commons/httpclient/ReadCookieServlet.java
  
  Index: ReadCookieServlet.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/httpclient/src/test-webapp/src/org/apache/commons/httpclient/ReadCookieServlet.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ReadCookieServlet.java    18 Feb 2003 15:54:30 -0000      1.4
  +++ ReadCookieServlet.java    13 Sep 2003 10:04:40 -0000      1.5
  @@ -76,9 +76,9 @@
           out.println("<head><title>ReadCookieServlet: " + request.getMethod() + 
"</title></head>");
           out.println("<body>");
           out.println("<p>This is a response to an HTTP " + request.getMethod() + " 
request.</p>");
  -        Enumeration enum = request.getHeaders("Cookie");
  -        while (enum.hasMoreElements()) {
  -            out.println("<p><tt>Cookie: " + (String)enum.nextElement() + 
"</tt></p>");
  +        Enumeration enumeration = request.getHeaders("Cookie");
  +        while (enumeration.hasMoreElements()) {
  +            out.println("<p><tt>Cookie: " + (String)enumeration.nextElement() + 
"</tt></p>");
           }
           Cookie[] cookies = request.getCookies();
           if(null != cookies) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to