ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r412489 - in /ant/core/trunk/src/main/org/apache/tools/ant: IntrospectionHelper.java taskdefs/Tstamp.java taskdefs/WaitFor.java taskdefs/optional/PropertyFile.java
Date Wed, 07 Jun 2006 19:14:43 GMT
Author: jkf
Date: Wed Jun  7 12:14:42 2006
New Revision: 412489

URL: http://svn.apache.org/viewvc?rev=412489&view=rev
Log:
Performance enhancement by Dave Brosius

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/IntrospectionHelper.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Tstamp.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/WaitFor.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/IntrospectionHelper.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/IntrospectionHelper.java?rev=412489&r1=412488&r2=412489&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/IntrospectionHelper.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/IntrospectionHelper.java Wed Jun  7 12:14:42
2006
@@ -96,7 +96,7 @@
      * and boolean are in here even though they get special treatment
      * - this way we only need to test for the wrapper class.
      */
-    private static final Hashtable PRIMITIVE_TYPE_MAP = new Hashtable(8);
+    private static final Map PRIMITIVE_TYPE_MAP = new HashMap(8);
 
     // Set up PRIMITIVE_TYPE_MAP
     static {

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Tstamp.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Tstamp.java?rev=412489&r1=412488&r2=412489&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Tstamp.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Tstamp.java Wed Jun  7 12:14:42
2006
@@ -21,8 +21,9 @@
 import java.util.Calendar;
 import java.util.Date;
 import java.util.Enumeration;
-import java.util.Hashtable;
+import java.util.HashMap;
 import java.util.Locale;
+import java.util.Map;
 import java.util.NoSuchElementException;
 import java.util.StringTokenizer;
 import java.util.TimeZone;
@@ -302,7 +303,7 @@
                                                 YEAR
                                               };
 
-        private Hashtable calendarFields = new Hashtable();
+        private Map calendarFields = new HashMap();
 
         /** Constructor for Unit enumerated type. */
         public Unit() {

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/WaitFor.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/WaitFor.java?rev=412489&r1=412488&r2=412489&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/WaitFor.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/WaitFor.java Wed Jun  7 12:14:42
2006
@@ -17,7 +17,8 @@
 
 package org.apache.tools.ant.taskdefs;
 
-import java.util.Hashtable;
+import java.util.HashMap;
+import java.util.Map;
 import org.apache.tools.ant.BuildException;
 import org.apache.tools.ant.Project;
 import org.apache.tools.ant.taskdefs.condition.Condition;
@@ -187,7 +188,7 @@
             MILLISECOND, SECOND, MINUTE, HOUR, DAY, WEEK
         };
 
-        private Hashtable timeTable = new Hashtable();
+        private Map timeTable = new HashMap();
 
         /** Constructor the Unit enumerated type. */
         public Unit() {

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java?rev=412489&r1=412488&r2=412489&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java Wed Jun
 7 12:14:42 2006
@@ -30,7 +30,8 @@
 import java.util.Calendar;
 import java.util.Date;
 import java.util.Enumeration;
-import java.util.Hashtable;
+import java.util.HashMap;
+import java.util.Map;
 import java.util.Properties;
 import java.util.Vector;
 import org.apache.tools.ant.BuildException;
@@ -597,7 +598,7 @@
             = {MILLISECOND, SECOND, MINUTE, HOUR,
                DAY, WEEK, MONTH, YEAR };
 
-        private Hashtable calendarFields = new Hashtable();
+        private Map calendarFields = new HashMap();
 
         public Unit() {
             calendarFields.put(MILLISECOND,



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


Mime
View raw message