[Jakarta-slide Wiki] Update of "DASLSearch" by alphatan
Apache Wiki <[email protected]> Mon, 08 Oct 2007 10:10:01 -0000
| Newsgroups | gmane.comp.jakarta.slide.devel |
|---|---|
| Message-ID | <[email protected]> |
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());
}
}
}