summaryrefslogtreecommitdiff
path: root/javax/xml
diff options
context:
space:
mode:
Diffstat (limited to 'javax/xml')
-rw-r--r--javax/xml/namespace/QName.java4
-rw-r--r--javax/xml/transform/TransformerException.java5
2 files changed, 7 insertions, 2 deletions
diff --git a/javax/xml/namespace/QName.java b/javax/xml/namespace/QName.java
index 18dee79bb..3c7562378 100644
--- a/javax/xml/namespace/QName.java
+++ b/javax/xml/namespace/QName.java
@@ -38,6 +38,8 @@ exception statement from your version. */
package javax.xml.namespace;
+import gnu.java.lang.CPStringBuilder;
+
import java.io.Serializable;
import javax.xml.XMLConstants;
@@ -126,7 +128,7 @@ public class QName implements Serializable
{
if (qName == null)
{
- StringBuffer buf = new StringBuffer();
+ CPStringBuilder buf = new CPStringBuilder();
if (namespaceURI.length() > 0)
{
buf.append('{');
diff --git a/javax/xml/transform/TransformerException.java b/javax/xml/transform/TransformerException.java
index 3d97eda1b..7a0b5ad98 100644
--- a/javax/xml/transform/TransformerException.java
+++ b/javax/xml/transform/TransformerException.java
@@ -34,8 +34,11 @@ or based on this library. If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */
+
package javax.xml.transform;
+import gnu.java.lang.CPStringBuilder;
+
import java.io.PrintStream;
import java.io.PrintWriter;
@@ -179,7 +182,7 @@ public class TransformerException
String systemId = locator.getSystemId();
int lineNumber = locator.getLineNumber();
int columnNumber = locator.getColumnNumber();
- StringBuffer buffer = new StringBuffer ();
+ CPStringBuilder buffer = new CPStringBuilder ();
if (publicId != null)
{
buffer.append ("publicId=");