xerces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mrgla...@apache.org
Subject svn commit: r1024512 - /xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLAssertPsychopathImpl.java
Date Wed, 20 Oct 2010 03:23:34 GMT
Author: mrglavas
Date: Wed Oct 20 03:23:33 2010
New Revision: 1024512

URL: http://svn.apache.org/viewvc?rev=1024512&view=rev
Log:
Eliminating redundant calls for the length of a list within a loop.

Modified:
    xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLAssertPsychopathImpl.java

Modified: xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLAssertPsychopathImpl.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLAssertPsychopathImpl.java?rev=1024512&r1=1024511&r2=1024512&view=diff
==============================================================================
--- xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLAssertPsychopathImpl.java
(original)
+++ xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLAssertPsychopathImpl.java
Wed Oct 20 03:23:33 2010
@@ -163,7 +163,8 @@ public class XMLAssertPsychopathImpl ext
         }
 
         // add attribute nodes to DOM element node
-        for (int attIndex = 0; attIndex < attributes.getLength(); attIndex++) {
+        final int attributesLength = attributes.getLength();
+        for (int attIndex = 0; attIndex < attributesLength; attIndex++) {
             String attrUri = attributes.getURI(attIndex);
             String attQName = attributes.getQName(attIndex);
             String attrLocalName = attributes.getLocalName(attIndex);



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org


Mime
View raw message