ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/types FilterSet.java
Date Sun, 02 Feb 2003 13:58:50 GMT
conor       2003/02/02 05:58:50

  Modified:    src/main/org/apache/tools/ant/types FilterSet.java
  Log:
  JDK 1.1 does not like 0 for initial size of hashtables
  
  PR:	15445
  
  Revision  Changes    Path
  1.17      +1 -1      jakarta-ant/src/main/org/apache/tools/ant/types/FilterSet.java
  
  Index: FilterSet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/types/FilterSet.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -w -u -r1.16 -r1.17
  --- FilterSet.java	27 Sep 2002 09:30:37 -0000	1.16
  +++ FilterSet.java	2 Feb 2003 13:58:50 -0000	1.17
  @@ -209,7 +209,7 @@
        */
       public Hashtable getFilterHash() {
           int filterSize = getFilters().size();
  -        Hashtable filterHash = new Hashtable(filterSize);
  +        Hashtable filterHash = new Hashtable(filterSize + 1);
           for (Enumeration e = getFilters().elements(); e.hasMoreElements();) {
              Filter filter = (Filter) e.nextElement();
              filterHash.put(filter.getToken(), filter.getValue());
  
  
  

Mime
View raw message