You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2003/09/23 23:55:38 UTC
cvs commit: xml-xerces/java/samples/xni PSVIWriter.java
mrglavas 2003/09/23 14:55:38
Modified: java/samples/xni PSVIWriter.java
Log:
In anticipation of J2SE 1.5, replace all occurences
where enum has been used as the name in a local
variable, with a new and appropriate name. In J2SE
1.5, enum has become a keyword. Making these
changes should prevent potential compilation
problems when J2SE 1.5 becomes available.
Revision Changes Path
1.22 +4 -4 xml-xerces/java/samples/xni/PSVIWriter.java
Index: PSVIWriter.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/samples/xni/PSVIWriter.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- PSVIWriter.java 18 Aug 2003 19:21:44 -0000 1.21
+++ PSVIWriter.java 23 Sep 2003 21:55:37 -0000 1.22
@@ -877,11 +877,11 @@
sendElementEvent("prefix", "xml");
sendElementEvent("namespaceName", NamespaceContext.XML_URI);
sendUnIndentedElement("namespace");
- Enumeration enum = fNamespaceContext.getAllPrefixes();
- while (enum.hasMoreElements()) {
+ Enumeration prefixes = fNamespaceContext.getAllPrefixes();
+ while (prefixes.hasMoreElements()) {
sendIndentedElement("namespace");
- String prefix = (String)enum.nextElement();
+ String prefix = (String)prefixes.nextElement();
String uri = fNamespaceContext.getURI(prefix);
sendElementEvent("prefix", prefix);
sendElementEvent("namespaceName", uri);
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org