aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas L. Delmelle <adelmelle@apache.org>2006-02-27 17:51:45 +0000
committerAndreas L. Delmelle <adelmelle@apache.org>2006-02-27 17:51:45 +0000
commit3d819ae9d9601336504d6b2bf6018dfe62bb4080 (patch)
treebdbcb4a8325d22c4aa6e735abf1708e870d58d8d /src
parent8e769a44fab0eda1433dbb52933d8a99dac158e0 (diff)
downloadxmlgraphics-fop-3d819ae9d9601336504d6b2bf6018dfe62bb4080.tar.gz
xmlgraphics-fop-3d819ae9d9601336504d6b2bf6018dfe62bb4080.zip
A nit: slight performance optimization
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@381397 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/fo/PropertyList.java17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/java/org/apache/fop/fo/PropertyList.java b/src/java/org/apache/fop/fo/PropertyList.java
index 17ce3271a..7d4b0132d 100644
--- a/src/java/org/apache/fop/fo/PropertyList.java
+++ b/src/java/org/apache/fop/fo/PropertyList.java
@@ -293,15 +293,16 @@ public abstract class PropertyList {
convertAttributeToProperty(attributes, attributeName,
attributeValue);
}
-
+
+ String attributeNS;
for (int i = 0; i < attributes.getLength(); i++) {
- /* convert all attributes with the same namespace as the fo element for this fObj */
- String attributeNS = attributes.getURI(i);
- if (attributeNS.length() == 0 || attributeNS.equals(fobj.getNamespaceURI())) {
- attributeName = attributes.getQName(i);
- attributeValue = attributes.getValue(i);
- convertAttributeToProperty(attributes, attributeName, attributeValue);
- }
+ /* convert all attributes with the same namespace as the fo element for this fObj */
+ attributeNS = attributes.getURI(i);
+ if (attributeNS.length() == 0 || attributeNS.equals(fobj.getNamespaceURI())) {
+ attributeName = attributes.getQName(i);
+ attributeValue = attributes.getValue(i);
+ convertAttributeToProperty(attributes, attributeName, attributeValue);
+ }
}
}