Browse Source

Moved complex operations outside of loop evaluation

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271400 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 24 years ago
parent
commit
ca76c9e33c
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      proposal/myrmidon/src/java/org/apache/myrmidon/components/deployer/Deployment.java

+ 4
- 2
proposal/myrmidon/src/java/org/apache/myrmidon/components/deployer/Deployment.java View File

@@ -89,7 +89,8 @@ class Deployment

// 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 @@ class Deployment
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 );



Loading…
Cancel
Save