You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by pb...@apache.org on 2004/01/01 13:39:30 UTC
cvs commit: xml-fop/src/java/org/apache/fop/fo FOAttributes.java
pbwest 2004/01/01 04:39:30
Modified: src/java/org/apache/fop/fo Tag: FOP_0-20-0_Alt-Design
FOAttributes.java
Log:
Remove intern() calls. Slows processing to no obvious benefit.
integerArray made final.
Revision Changes Path
No revision
No revision
1.1.2.3 +6 -6 xml-fop/src/java/org/apache/fop/fo/Attic/FOAttributes.java
Index: FOAttributes.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/Attic/FOAttributes.java,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -r1.1.2.2 -r1.1.2.3
--- FOAttributes.java 28 Dec 2003 05:22:07 -0000 1.1.2.2
+++ FOAttributes.java 1 Jan 2004 12:39:30 -0000 1.1.2.3
@@ -116,7 +116,7 @@
* A static array of <tt>Integer</tt> as a template for the generation
* of the <i>foAttrKeys</i> array.
*/
- private static Integer[] integerArray
+ private static final Integer[] integerArray
= new Integer[] { Ints.consts.get(0) };
/**
@@ -151,8 +151,8 @@
if (attributes == null) throw new FOPException
("No Attributes in XMLEvent");
for (int i = 0; i < attributes.getLength(); i++) {
- String attrUri = attributes.getURI(i).intern();
- String attrLocalname = attributes.getLocalName(i).intern();
+ String attrUri = attributes.getURI(i);
+ String attrLocalname = attributes.getLocalName(i);
String attrValue = attributes.getValue(i);
int attrUriIndex = foNode.namespaces.getURIIndex(attrUri);
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org