You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by Apache Wiki <wi...@apache.org> on 2007/10/08 12:10:01 UTC

[Jakarta-slide Wiki] Update of "DASLSearch" by alphatan

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jakarta-slide Wiki" for change notification.

The following page has been changed by alphatan:
http://wiki.apache.org/jakarta-slide/DASLSearch

The comment on the change is:
revise: enum => e, because enum is a keyword in jdk5

------------------------------------------------------------------------------
  == Example Code ==
  {{{
  /*
-  *  Copyright 1999-2004 The Apache Software Foundation 
+  *  Copyright 1999-2004 The Apache Software Foundation
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
@@ -91, +91 @@

          for (int i = 0; i < headers.length; i++) {
              System.out.println(headers[i].toString());
          }
-         Enumeration enum = method.getAllResponseURLs();
+         Enumeration e = method.getAllResponseURLs();
-         while (enum.hasMoreElements()) {
+         while (e.hasMoreElements()) {
-             System.out.println(enum.nextElement());
+             System.out.println(e.nextElement());
          }
      }
  }

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org