ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew B. Sudell" <asud...@acm.org>
Subject Minor JDK 1.1 nit
Date Fri, 14 Jul 2000 03:06:11 GMT
This always catches me, too.  JDK 1.1 only has addElement, but
add seems so much more natural to say.

Index: src/main/org/apache/tools/ant/taskdefs/AntStructure.java
===================================================================
RCS file: /home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/AntStructure.java,v
retrieving revision 1.1
diff -u -r1.1 AntStructure.java
--- src/main/org/apache/tools/ant/taskdefs/AntStructure.java    2000/07/12 14:19:52     1.1
+++ src/main/org/apache/tools/ant/taskdefs/AntStructure.java    2000/07/14 02:59:10
@@ -108,7 +108,7 @@
             Enumeration enum = project.getTaskDefinitions().keys();
             while (enum.hasMoreElements()) {
                 String taskName = (String) enum.nextElement();
-                tasks.add(taskName);
+                tasks.addElement(taskName);
             }
             printTargetDecl(out, tasks);
 

-- 
        Drew Sudell     asudell@op.net      http://www.op.net/~asudell

Mime
View raw message