From ca18bf6839d498c00fcfeecd04e291ec37ace01e Mon Sep 17 00:00:00 2001 From: Peter Bernard West Date: Thu, 1 Jan 2004 12:39:30 +0000 Subject: [PATCH] Remove intern() calls. Slows processing to no obvious benefit. 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/java/org/apache/fop/fo/FOAttributes.java b/src/java/org/apache/fop/fo/FOAttributes.java index 7703b2570..fb2348992 100644 --- a/src/java/org/apache/fop/fo/FOAttributes.java +++ b/src/java/org/apache/fop/fo/FOAttributes.java @@ -116,7 +116,7 @@ public class FOAttributes { * A static array of Integer as a template for the generation * of the foAttrKeys 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); -- 2.39.5