Index: java/src/org/apache/html/dom/HTMLOptionElementImpl.java
===================================================================
RCS file: /home/cvspublic/xml-xerces/java/src/org/apache/html/dom/HTMLOptionElementImpl.java,v
retrieving revision 1.7
diff -u -r1.7 HTMLOptionElementImpl.java
--- java/src/org/apache/html/dom/HTMLOptionElementImpl.java	24 Feb 2004 23:34:00 -0000	1.7
+++ java/src/org/apache/html/dom/HTMLOptionElementImpl.java	8 Jul 2004 18:49:44 -0000
@@ -54,19 +54,18 @@
     public String getText()
     {
         Node    child;
-        String    text;
+        StringBuffer    text = new StringBuffer();
         
         // Find the Text nodes contained within this element and return their
         // concatenated value. Required to go around comments, entities, etc.
         child = getFirstChild();
-        text = "";
         while ( child != null )
         {
             if ( child instanceof Text )
-                text = text + ( (Text) child ).getData();
+                text.append(( (Text) child ).getData());
             child = child.getNextSibling();
         }
-        return text;
+        return text.toString();
     }
     
     
Index: java/src/org/apache/html/dom/HTMLScriptElementImpl.java
===================================================================
RCS file: /home/cvspublic/xml-xerces/java/src/org/apache/html/dom/HTMLScriptElementImpl.java,v
retrieving revision 1.7
diff -u -r1.7 HTMLScriptElementImpl.java
--- java/src/org/apache/html/dom/HTMLScriptElementImpl.java	24 Feb 2004 23:34:00 -0000	1.7
+++ java/src/org/apache/html/dom/HTMLScriptElementImpl.java	8 Jul 2004 18:50:33 -0000
@@ -36,19 +36,18 @@
     public String getText()
     {
         Node    child;
-        String    text;
+        StringBuffer    text = new StringBuffer();
         
         // Find the Text nodes contained within this element and return their
         // concatenated value. Required to go around comments, entities, etc.
         child = getFirstChild();
-        text = "";
         while ( child != null )
         {
             if ( child instanceof Text )
-                text = text + ( (Text) child ).getData();
+                text.append(( (Text) child ).getData());
             child = child.getNextSibling();
         }
-        return text;
+        return text.toString();
     }
     
     
Index: java/src/org/apache/html/dom/HTMLTitleElementImpl.java
===================================================================
RCS file: /home/cvspublic/xml-xerces/java/src/org/apache/html/dom/HTMLTitleElementImpl.java,v
retrieving revision 1.7
diff -u -r1.7 HTMLTitleElementImpl.java
--- java/src/org/apache/html/dom/HTMLTitleElementImpl.java	24 Feb 2004 23:34:01 -0000	1.7
+++ java/src/org/apache/html/dom/HTMLTitleElementImpl.java	8 Jul 2004 18:51:22 -0000
@@ -36,19 +36,18 @@
     public String getText()
     {
         Node    child;
-        String    text;
+        StringBuffer    text = new StringBuffer();
         
         // Find the Text nodes contained within this element and return their
         // concatenated value. Required to go around comments, entities, etc.
         child = getFirstChild();
-        text = "";
         while ( child != null )
         {
             if ( child instanceof Text )
-                text = text + ( (Text) child ).getData();
+                text.append(( (Text) child ).getData());
             child = child.getNextSibling();
         }
-        return text;
+        return text.toString();
     }
     
     
Index: java/src/org/apache/xerces/impl/XMLEntityManager.java
===================================================================
RCS file: /home/cvspublic/xml-xerces/java/src/org/apache/xerces/impl/XMLEntityManager.java,v
retrieving revision 1.79
diff -u -r1.79 XMLEntityManager.java
--- java/src/org/apache/xerces/impl/XMLEntityManager.java	16 Mar 2004 22:03:22 -0000	1.79
+++ java/src/org/apache/xerces/impl/XMLEntityManager.java	8 Jul 2004 18:53:41 -0000
@@ -745,16 +745,19 @@
                                 ? fCurrentEntity
                                 : (Entity)fEntityStack.elementAt(i);
             if (activeEntity.name == entityName) {
-                String path = entityName;
+                StringBuffer path = new StringBuffer(entityName);
                 for (int j = i + 1; j < size; j++) {
                     activeEntity = (Entity)fEntityStack.elementAt(j);
-                    path = path + " -> " + activeEntity.name;
+                    path.append(" -> ");
+                    path.append(activeEntity.name);
                 }
-                path = path + " -> " + fCurrentEntity.name;
-                path = path + " -> " + entityName;
+                path.append(" -> ");
+                path.append(fCurrentEntity.name);
+                path.append(" -> ");
+                path.append(entityName);
                 fErrorReporter.reportError(XMLMessageFormatter.XML_DOMAIN,
                                            "RecursiveReference",
-                                           new Object[] { entityName, path },
+                                           new Object[] { entityName, path.toString() },
                                            XMLErrorReporter.SEVERITY_FATAL_ERROR);
                 if (fEntityHandler != null) {
                     fResourceIdentifier.clear();
Index: java/src/org/apache/xerces/impl/xs/traversers/XSDComplexTypeTraverser.java
===================================================================
RCS file: /home/cvspublic/xml-xerces/java/src/org/apache/xerces/impl/xs/traversers/XSDComplexTypeTraverser.java,v
retrieving revision 1.42
diff -u -r1.42 XSDComplexTypeTraverser.java
--- java/src/org/apache/xerces/impl/xs/traversers/XSDComplexTypeTraverser.java	24 Feb 2004 22:59:14 -0000	1.42
+++ java/src/org/apache/xerces/impl/xs/traversers/XSDComplexTypeTraverser.java	8 Jul 2004 18:55:22 -0000
@@ -1058,14 +1058,13 @@
         // names of parent nodes
         // The name is quite good for debugging/error purposes, but we may want to
         // revisit how this is done for performance reasons (LM).
-        String typeName;
+        StringBuffer typeName = new StringBuffer("#AnonType_");
         Element node = DOMUtil.getParent(complexTypeDecl);
-        typeName="#AnonType_";
         while (node != null && (node != DOMUtil.getRoot(DOMUtil.getDocument(node)))) {
-            typeName = typeName+node.getAttribute(SchemaSymbols.ATT_NAME);
+            typeName.append(node.getAttribute(SchemaSymbols.ATT_NAME));
             node = DOMUtil.getParent(node);
         }
-        return typeName;
+        return typeName.toString();
     }
 
 
