You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by di...@apache.org on 2004/09/07 04:07:32 UTC

cvs commit: jakarta-commons/jelly/jelly-tags/util/src/java/org/apache/commons/jelly/tags/util PropertiesTag.java

dion        2004/09/06 19:07:32

  Modified:    jelly/jelly-tags/util/src/java/org/apache/commons/jelly/tags/util
                        PropertiesTag.java
  Log:
  Fix JDK 1.5 compile issues
  
  Revision  Changes    Path
  1.5       +4 -4      jakarta-commons/jelly/jelly-tags/util/src/java/org/apache/commons/jelly/tags/util/PropertiesTag.java
  
  Index: PropertiesTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/jelly/jelly-tags/util/src/java/org/apache/commons/jelly/tags/util/PropertiesTag.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- PropertiesTag.java	25 Feb 2004 01:31:53 -0000	1.4
  +++ PropertiesTag.java	7 Sep 2004 02:07:32 -0000	1.5
  @@ -80,9 +80,9 @@
               context.setVariable(var, props);
           }
           else {
  -            Enumeration enum = props.propertyNames();
  -            while (enum.hasMoreElements()) {
  -                String key = (String) enum.nextElement();
  +            Enumeration propsEnum = props.propertyNames();
  +            while (propsEnum.hasMoreElements()) {
  +                String key = (String) propsEnum.nextElement();
                   String value = props.getProperty(key);
                   
                   // @todo we should parse the value in case its an Expression
  
  
  

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