ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r517628 - /ant/core/trunk/src/main/org/apache/tools/ant/ProjectHelper.java
Date Tue, 13 Mar 2007 10:06:26 GMT
Author: kevj
Date: Tue Mar 13 03:06:23 2007
New Revision: 517628

URL: http://svn.apache.org/viewvc?view=rev&rev=517628
Log:
-tiny loop change

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/ProjectHelper.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/ProjectHelper.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/ProjectHelper.java?view=diff&rev=517628&r1=517627&r2=517628
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/ProjectHelper.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/ProjectHelper.java Tue Mar 13 03:06:23 2007
@@ -308,7 +308,7 @@
         IntrospectionHelper ih =
             IntrospectionHelper.getHelper(project, target.getClass());
 
-        for (int i = 0; i < attrs.getLength(); i++) {
+        for (int i = 0, length = attrs.getLength(); i < length; i++) {
             // reflect these into the target
             String value = replaceProperties(project, attrs.getValue(i),
                                              project.getProperties());



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


Mime
View raw message