summaryrefslogtreecommitdiff
path: root/java/lang
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2008-05-06 19:49:33 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2008-05-06 19:49:33 +0000
commitcf06685008c6dc7253938c294464211ef1a55028 (patch)
tree0167b54abbeca59ce354e00f9c99c28fff425b98 /java/lang
parentfc77df2c4a37d8615fc4f4032238adc483a465c7 (diff)
downloadclasspath-cf06685008c6dc7253938c294464211ef1a55028.tar.gz
2008-05-06 Andrew John Hughes <gnu_andrew@member.fsf.org>
PR classpath/21869 * java/beans/Statement.java, * java/io/File.java, * java/io/StreamTokenizer.java, * java/lang/Throwable.java, * java/math/BigDecimal.java, * java/math/BigInteger.java, * java/net/Inet4Address.java, * java/net/Inet6Address.java, * java/net/NetworkInterface.java, * java/net/SocketPermission.java, * java/net/URLDecoder.java, * java/net/URLStreamHandler.java, * java/nio/channels/FileLock.java, * java/rmi/dgc/VMID.java: Swap use of StringBuffer for CPStringBuilder.
Diffstat (limited to 'java/lang')
-rw-r--r--java/lang/Throwable.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/java/lang/Throwable.java b/java/lang/Throwable.java
index 72f9e7f52..f74851f0b 100644
--- a/java/lang/Throwable.java
+++ b/java/lang/Throwable.java
@@ -39,6 +39,8 @@ package java.lang;
import gnu.classpath.SystemProperties;
+import gnu.java.lang.CPStringBuilder;
+
import java.io.PrintStream;
import java.io.PrintWriter;
import java.io.Serializable;
@@ -411,7 +413,7 @@ public class Throwable implements Serializable
// different threads to get mixed up when written to the same PrintWriter.
private String stackTraceString()
{
- StringBuilder sb = new StringBuilder();
+ CPStringBuilder sb = new CPStringBuilder();
// Main stacktrace
StackTraceElement[] stack = getStackTrace();
@@ -455,7 +457,7 @@ public class Throwable implements Serializable
// Adds to the given StringBuffer a line containing the name and
// all stacktrace elements minus the last equal ones.
- private static void stackTraceStringBuffer(StringBuilder sb, String name,
+ private static void stackTraceStringBuffer(CPStringBuilder sb, String name,
StackTraceElement[] stack, int equal)
{
String nl = StaticData.nl;