struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@apache.org
Subject svn commit: r209409 - in /struts/sandbox/trunk/tiles/core-library/src/java/org/apache/tiles: DefinitionsUtil.java definition/ReloadableDefinitionsFactory.java
Date Wed, 06 Jul 2005 05:22:37 GMT
Author: craigmcc
Date: Tue Jul  5 22:22:33 2005
New Revision: 209409

URL: http://svn.apache.org/viewcvs?rev=209409&view=rev
Log:
Replace "enum" as an instance variable name, since it is a reserved word
as of JDK 1.5.

Modified:
    struts/sandbox/trunk/tiles/core-library/src/java/org/apache/tiles/DefinitionsUtil.java
    struts/sandbox/trunk/tiles/core-library/src/java/org/apache/tiles/definition/ReloadableDefinitionsFactory.java

Modified: struts/sandbox/trunk/tiles/core-library/src/java/org/apache/tiles/DefinitionsUtil.java
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/tiles/core-library/src/java/org/apache/tiles/DefinitionsUtil.java?rev=209409&r1=209408&r2=209409&view=diff
==============================================================================
--- struts/sandbox/trunk/tiles/core-library/src/java/org/apache/tiles/DefinitionsUtil.java
(original)
+++ struts/sandbox/trunk/tiles/core-library/src/java/org/apache/tiles/DefinitionsUtil.java
Tue Jul  5 22:22:33 2005
@@ -294,9 +294,9 @@
             // It is possible to avoid creation of a new structure, but this need
             // imply writing all Map interface.
 				System.out.println("Iterating over servlet parameters");
-            Enumeration enum = config.getInitParameterNames();
-            while (enum.hasMoreElements()) {
-                String key = (String) enum.nextElement();
+            Enumeration names = config.getInitParameterNames();
+            while (names.hasMoreElements()) {
+                String key = (String) names.nextElement();
                 put(key, config.getInitParameter(key));
 				    System.out.println("Storing key " + key);
             }

Modified: struts/sandbox/trunk/tiles/core-library/src/java/org/apache/tiles/definition/ReloadableDefinitionsFactory.java
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/tiles/core-library/src/java/org/apache/tiles/definition/ReloadableDefinitionsFactory.java?rev=209409&r1=209408&r2=209409&view=diff
==============================================================================
--- struts/sandbox/trunk/tiles/core-library/src/java/org/apache/tiles/definition/ReloadableDefinitionsFactory.java
(original)
+++ struts/sandbox/trunk/tiles/core-library/src/java/org/apache/tiles/definition/ReloadableDefinitionsFactory.java
Tue Jul  5 22:22:33 2005
@@ -270,9 +270,9 @@
             // This implementation is very simple.
             // It is possible to avoid creation of a new structure, but this would
             // imply writing all of the Map interface.
-            Enumeration enum = config.getInitParameterNames();
-            while (enum.hasMoreElements()) {
-                String key = (String) enum.nextElement();
+            Enumeration names = config.getInitParameterNames();
+            while (names.hasMoreElements()) {
+                String key = (String) names.nextElement();
                 put(key, config.getInitParameter(key));
             }
         }



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


Mime
View raw message