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/proposal/myrmidon/src/java/org/apache/myrmidon/components/deployer Deployment.java
Date Mon, 18 Feb 2002 08:37:01 GMT
donaldp     02/02/18 00:37:00

  Modified:    proposal/myrmidon/src/java/org/apache/myrmidon/components/deployer
                        Deployment.java
  Log:
  Moved complex operations outside of loop evaluation
  
  Revision  Changes    Path
  1.21      +5 -3      jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/deployer/Deployment.java
  
  Index: Deployment.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/deployer/Deployment.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- Deployment.java	14 Feb 2002 02:07:02 -0000	1.20
  +++ Deployment.java	18 Feb 2002 08:37:00 -0000	1.21
  @@ -30,7 +30,7 @@
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
    * @author <a href="mailto:adammurdoch@apache.org">Adam Murdoch</a>
  - * @version $Revision: 1.20 $ $Date: 2002/02/14 02:07:02 $
  + * @version $Revision: 1.21 $ $Date: 2002/02/18 08:37:00 $
    */
   class Deployment
       extends AbstractLogEnabled
  @@ -89,7 +89,8 @@
   
           // Deploy the roles
           // TODO - need to defer this
  -        for( int i = 0; i < roleDescriptors.size(); i++ )
  +        final int roleCount = roleDescriptors.size();
  +        for( int i = 0; i < roleCount; i++ )
           {
               final RoleDescriptor descriptor = (RoleDescriptor)roleDescriptors.get( i );
               deployRoles( descriptor );
  @@ -212,7 +213,8 @@
           throws Exception
       {
           final ArrayList descriptors = new ArrayList();
  -        for( int i = 0; i < urls.size(); i++ )
  +        final int size = urls.size();
  +        for( int i = 0; i < size; i++ )
           {
               final String url = (String)urls.get( i );
   
  
  
  

--
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