diff options
Diffstat (limited to 'src/main/javassist/bytecode/annotation/Annotation.java')
-rw-r--r-- | src/main/javassist/bytecode/annotation/Annotation.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/javassist/bytecode/annotation/Annotation.java b/src/main/javassist/bytecode/annotation/Annotation.java index 1cec468b..f700f036 100644 --- a/src/main/javassist/bytecode/annotation/Annotation.java +++ b/src/main/javassist/bytecode/annotation/Annotation.java @@ -210,17 +210,18 @@ public class Annotation { */ @Override public String toString() { - StringBuffer buf = new StringBuffer("@"); + StringBuilder buf = new StringBuilder(); + buf.append('@'); buf.append(getTypeName()); if (members != null) { - buf.append("("); + buf.append('('); for (String name:members.keySet()) { - buf.append(name).append("=") + buf.append(name).append('=') .append(getMemberValue(name)) .append(", "); } buf.setLength(buf.length()-2); - buf.append(")"); + buf.append(')'); } return buf.toString(); |