commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmi...@apache.org
Subject cvs commit: jakarta-commons/jxpath/src/java/org/apache/commons/jxpath MapDynamicPropertyHandler.java
Date Tue, 02 Mar 2004 01:03:14 GMT
dmitri      2004/03/01 17:03:14

  Modified:    jxpath/src/java/org/apache/commons/jxpath
                        MapDynamicPropertyHandler.java
  Log:
  Fix for bug #26853.   See http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26853
  
  Revision  Changes    Path
  1.7       +5 -3      jakarta-commons/jxpath/src/java/org/apache/commons/jxpath/MapDynamicPropertyHandler.java
  
  Index: MapDynamicPropertyHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/jxpath/src/java/org/apache/commons/jxpath/MapDynamicPropertyHandler.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- MapDynamicPropertyHandler.java	29 Feb 2004 14:17:42 -0000	1.6
  +++ MapDynamicPropertyHandler.java	2 Mar 2004 01:03:14 -0000	1.7
  @@ -17,6 +17,7 @@
   
   import java.util.Iterator;
   import java.util.Map;
  +import java.util.Set;
   
   /**
    * Implements the DynamicPropertyHandler interface for java.util.Map.
  @@ -33,8 +34,9 @@
        */
       public String[] getPropertyNames(Object object) {
           Map map = (Map) object;
  -        String names[] = new String[map.size()];
  -        Iterator it = map.keySet().iterator();
  +        Set set = map.keySet();
  +        String names[] = new String[set.size()];
  +        Iterator it = set.iterator();
           for (int i = 0; i < names.length; i++) {
               names[i] = String.valueOf(it.next());
           }
  
  
  

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


Mime
View raw message