[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fop-cvs
Subject:    svn commit: r381397 -
From:       adelmelle () apache ! org
Date:       2006-02-27 17:51:46
Message-ID: 20060227175147.66005.qmail () minotaur ! apache ! org
[Download RAW message or body]

Author: adelmelle
Date: Mon Feb 27 09:51:45 2006
New Revision: 381397

URL: http://svn.apache.org/viewcvs?rev=381397&view=rev
Log:
A nit: slight performance optimization

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/PropertyList.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/PropertyList.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/PropertyList.java?rev=381397&r1=381396&r2=381397&view=diff
 ==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/PropertyList.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/PropertyList.java Mon Feb 27 \
09:51:45 2006 @@ -293,15 +293,16 @@
             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); +            }
         }
     }
 



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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic