ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces EmbeddedAnt.java
Date Thu, 23 May 2002 01:02:22 GMT
donaldp     02/05/22 18:02:21

  Modified:    container/src/java/org/apache/myrmidon/interfaces
                        EmbeddedAnt.java
  Log:
  Move complex operation out of loop counter
  
  Revision  Changes    Path
  1.12      +4 -3      jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/EmbeddedAnt.java
  
  Index: EmbeddedAnt.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/EmbeddedAnt.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- EmbeddedAnt.java	21 May 2002 06:52:28 -0000	1.11
  +++ EmbeddedAnt.java	23 May 2002 01:02:21 -0000	1.12
  @@ -43,7 +43,7 @@
    *
    * @author <a href="mailto:adammurdoch@apache.org">Adam Murdoch</a>
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.11 $ $Date: 2002/05/21 06:52:28 $
  + * @version $Revision: 1.12 $ $Date: 2002/05/23 01:02:21 $
    */
   public class EmbeddedAnt
       extends AbstractLogEnabled
  @@ -413,9 +413,10 @@
           }
   
           // Check each one
  -        for( int i = 0; i < files.size(); i++ )
  +        final int size = files.size();
  +        for( int i = 0; i < size; i++ )
           {
  -            File file = (File)files.get( i );
  +            final File file = (File)files.get( i );
               checkDirectory( file, name );
           }
   
  
  
  

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


Mime
View raw message