axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prad...@apache.org
Subject svn commit: r635557 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/Options.java
Date Mon, 10 Mar 2008 14:01:00 GMT
Author: pradine
Date: Mon Mar 10 07:00:59 2008
New Revision: 635557

URL: http://svn.apache.org/viewvc?rev=635557&view=rev
Log:
Retrieve the size of the relationships list only once.

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/Options.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/Options.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/Options.java?rev=635557&r1=635556&r2=635557&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/Options.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/Options.java Mon
Mar 10 07:00:59 2008
@@ -47,7 +47,6 @@
 import java.io.ObjectInput;
 import java.io.ObjectOutput;
 import java.util.ArrayList;
-import java.util.Arrays;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
@@ -377,7 +376,7 @@
         if (relationships == null) {
             return null;
         }
-        for (int i = 0; i < relationships.size(); i++) {
+        for (int i = 0, size = relationships.size(); i < size; i++) {
             RelatesTo relatesTo = (RelatesTo) relationships.get(i);
             String relationshipType = relatesTo.getRelationshipType();
             if (relationshipType.equals(type)) {
@@ -401,7 +400,7 @@
         if (relationships == null) {
             return null;
         }
-        for (int i = 0; i < relationships.size(); i++) {
+        for (int i = 0, size = relationships.size(); i < size; i++) {
             RelatesTo relatesTo = (RelatesTo) relationships.get(i);
             String relationshipType = relatesTo.getRelationshipType();
             if (relationshipType.equals(AddressingConstants.Final.WSA_DEFAULT_RELATIONSHIP_TYPE)



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message