aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/CtClassType.java
diff options
context:
space:
mode:
authorTimothy Hoffman <4001421+tim-hoffman@users.noreply.github.com>2021-07-16 10:55:33 -0500
committerTimothy Hoffman <4001421+tim-hoffman@users.noreply.github.com>2021-07-16 10:55:33 -0500
commitb4279f68174129f8b7b6180e6782641884daf013 (patch)
treefdc6f35a9e2c39214d2d9ff76028eff11dd6af07 /src/main/javassist/CtClassType.java
parent047f7c71be30d1fce5773c8e9c014052acac14df (diff)
downloadjavassist-b4279f68174129f8b7b6180e6782641884daf013.tar.gz
javassist-b4279f68174129f8b7b6180e6782641884daf013.zip
Replace StringBuffer with StringBuilder and 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) {