aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/CtClassType.java
diff options
context:
space:
mode:
authorShigeru Chiba <chibash@users.noreply.github.com>2022-05-13 02:45:42 +0900
committerGitHub <noreply@github.com>2022-05-13 02:45:42 +0900
commit8fc31b8ea3eaadd4f8e80fa06208cbf19e991b3c (patch)
treec678631763bf4862e26845edb0ddbdb0b5f11002 /src/main/javassist/CtClassType.java
parentdf3f4b7641d39558465a17514bffce657f2a27da (diff)
parent0827c539b765d73c952bb56454f7dd3faf2b0879 (diff)
downloadjavassist-8fc31b8ea3eaadd4f8e80fa06208cbf19e991b3c.tar.gz
javassist-8fc31b8ea3eaadd4f8e80fa06208cbf19e991b3c.zip
Merge pull request #382 from tim-hoffman/PR_RemoveStringBuffer
Replace StringBuffer with StringBuilder, other minor String optimizations
Diffstat (limited to 'src/main/javassist/CtClassType.java')
-rw-r--r--src/main/javassist/CtClassType.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/javassist/CtClassType.java b/src/main/javassist/CtClassType.java
index 959ec302..22b873a6 100644
--- a/src/main/javassist/CtClassType.java
+++ b/src/main/javassist/CtClassType.java
@@ -106,7 +106,7 @@ class CtClassType extends CtClass {
}
@Override
- protected void extendToString(StringBuffer buffer) {
+ protected void extendToString(StringBuilder buffer) {
if (wasChanged)
buffer.append("changed ");
@@ -125,7 +125,7 @@ class CtClassType extends CtClass {
if (ext != null) {
String name = ext.getName();
if (!name.equals("java.lang.Object"))
- buffer.append(" extends " + ext.getName());
+ buffer.append(" extends ").append(ext.getName());
}
}
catch (NotFoundException e) {
@@ -155,7 +155,7 @@ class CtClassType extends CtClass {
memCache.methodHead(), memCache.lastMethod());
}
- private void exToString(StringBuffer buffer, String msg,
+ private void exToString(StringBuilder buffer, String msg,
CtMember head, CtMember tail) {
buffer.append(msg);
while (head != tail) {