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: [email protected]
For additional commands, e-mail: [email protected]