diff options
Diffstat (limited to 'src/main/javassist/CtClass.java')
-rw-r--r-- | src/main/javassist/CtClass.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/javassist/CtClass.java b/src/main/javassist/CtClass.java index f1a47342..cba708ae 100644 --- a/src/main/javassist/CtClass.java +++ b/src/main/javassist/CtClass.java @@ -200,12 +200,12 @@ public abstract class CtClass { */ @Override public String toString() { - StringBuffer buf = new StringBuffer(getClass().getName()); - buf.append("@"); + StringBuilder buf = new StringBuilder(getClass().getName()); + buf.append('@'); buf.append(Integer.toHexString(hashCode())); - buf.append("["); + buf.append('['); extendToString(buf); - buf.append("]"); + buf.append(']'); return buf.toString(); } @@ -213,7 +213,7 @@ public abstract class CtClass { * Implemented in subclasses to add to the {@link #toString()} result. * Subclasses should put a space before each token added to the buffer. */ - protected void extendToString(StringBuffer buffer) { + protected void extendToString(StringBuilder buffer) { buffer.append(getName()); } |