You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-cvs@xml.apache.org by cu...@apache.org on 2004/10/18 18:21:46 UTC

cvs commit: xml-commons/java/src/org/apache/env Which.java

curcuru     2004/10/18 09:21:45

  Modified:    java/src/org/apache/env Which.java
  Log:
  Fixup enum variable name for JDK 1.5 compilation
  
  Revision  Changes    Path
  1.5       +9 -9      xml-commons/java/src/org/apache/env/Which.java
  
  Index: Which.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/src/org/apache/env/Which.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Which.java	7 Aug 2002 19:23:54 -0000	1.4
  +++ Which.java	18 Oct 2004 16:21:45 -0000	1.5
  @@ -316,12 +316,12 @@
           if (null == hash)
               return;
   
  -        Enumeration enum = hash.keys();
  +        Enumeration keysEnum = hash.keys();
           Vector v = new Vector();
   
  -        while (enum.hasMoreElements())
  +        while (keysEnum.hasMoreElements())
           {
  -            Object key = enum.nextElement();
  +            Object key = keysEnum.nextElement();
               String keyStr = key.toString();
               Object item = hash.get(key);
   
  @@ -338,12 +338,12 @@
               }
           }
   
  -        enum = v.elements();
  +        keysEnum = v.elements();
   
  -        while (enum.hasMoreElements())
  +        while (keysEnum.hasMoreElements())
           {
  -            String n = (String) enum.nextElement();
  -            Hashtable h = (Hashtable) enum.nextElement();
  +            String n = (String) keysEnum.nextElement();
  +            Hashtable h = (Hashtable) keysEnum.nextElement();
   
               reportHashtable(h, n, out);
           }