]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Remove intern() calls. Slows processing to no obvious benefit.
authorPeter Bernard West <pbwest@apache.org>
Thu, 1 Jan 2004 12:39:30 +0000 (12:39 +0000)
committerPeter Bernard West <pbwest@apache.org>
Thu, 1 Jan 2004 12:39:30 +0000 (12:39 +0000)
integerArray made final.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197083 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/FOAttributes.java

index 7703b25701e215bdc8808dd4d3d597cb0465d7ad..fb234899203546916e1ce14a6877df4abfd76fc9 100644 (file)
@@ -116,7 +116,7 @@ public class FOAttributes {
      * 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 @@ public class FOAttributes {
         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);