ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant PropertyHelper.java
Date Fri, 10 Sep 2004 17:32:11 GMT
peterreilly    2004/09/10 10:32:11

  Modified:    src/main/org/apache/tools/ant Tag: ANT_16_BRANCH
                        PropertyHelper.java
  Log:
  sync
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.9.2.8   +2 -21     ant/src/main/org/apache/tools/ant/PropertyHelper.java
  
  Index: PropertyHelper.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/PropertyHelper.java,v
  retrieving revision 1.9.2.7
  retrieving revision 1.9.2.8
  diff -u -r1.9.2.7 -r1.9.2.8
  --- PropertyHelper.java	3 Sep 2004 10:46:12 -0000	1.9.2.7
  +++ PropertyHelper.java	10 Sep 2004 17:32:11 -0000	1.9.2.8
  @@ -477,19 +477,9 @@
        *         (including user properties).
        */
       public Hashtable getProperties() {
  -        Hashtable propertiesCopy = new Hashtable();
  -
  -        Enumeration e = properties.keys();
  -        while (e.hasMoreElements()) {
  -            Object name = e.nextElement();
  -            Object value = properties.get(name);
  -            propertiesCopy.put(name, value);
  -        }
  -
  +        return new Hashtable(properties);
           // There is a better way to save the context. This shouldn't
           // delegate to next, it's for backward compatibility only.
  -
  -        return propertiesCopy;
       }
   
       /**
  @@ -497,16 +487,7 @@
        * @return a hashtable containing just the user properties
        */
       public Hashtable getUserProperties() {
  -        Hashtable propertiesCopy = new Hashtable();
  -
  -        Enumeration e = userProperties.keys();
  -        while (e.hasMoreElements()) {
  -            Object name = e.nextElement();
  -            Object value = properties.get(name);
  -            propertiesCopy.put(name, value);
  -        }
  -
  -        return propertiesCopy;
  +        return new Hashtable(userProperties);
       }
   
       /**
  
  
  

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


Mime
View raw message