Author: natalia Date: Tue Apr 15 16:19:03 2008 New Revision: 648455 URL: http://svn.apache.org/viewvc?rev=648455&view=rev Log: Optimization
Modified: xml/xindice/trunk/java/src/org/apache/xindice/xml/dom/ContainerNodeImpl.java Modified: xml/xindice/trunk/java/src/org/apache/xindice/xml/dom/ContainerNodeImpl.java URL: http://svn.apache.org/viewvc/xml/xindice/trunk/java/src/org/apache/xindice/xml/dom/ContainerNodeImpl.java?rev=648455&r1=648454&r2=648455&view=diff ============================================================================== --- xml/xindice/trunk/java/src/org/apache/xindice/xml/dom/ContainerNodeImpl.java (original) +++ xml/xindice/trunk/java/src/org/apache/xindice/xml/dom/ContainerNodeImpl.java Tue Apr 15 16:19:03 2008 @@ -399,12 +399,14 @@ if (!set.isEmpty() && (type != Node.TEXT_NODE || i == size - 1)) { Text s = (Text) set.get(0); + StringBuffer buf = new StringBuffer(s.getData()); int len = set.size(); for (int j = 1; j < len; j++) { modified = true; Text a = (Text) set.get(j); - s.appendData(a.getData()); + buf.append(a.getData()); } + s.setData(buf.toString()); newList.add(s); set.clear(); }