aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/javassist/bytecode/SignatureAttribute.java30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/main/javassist/bytecode/SignatureAttribute.java b/src/main/javassist/bytecode/SignatureAttribute.java
index 4671b787..8c7a2686 100644
--- a/src/main/javassist/bytecode/SignatureAttribute.java
+++ b/src/main/javassist/bytecode/SignatureAttribute.java
@@ -230,7 +230,7 @@ public class SignatureAttribute extends AttributeInfo {
*/
@Override
public String toString() {
- StringBuffer sbuf = new StringBuffer();
+ StringBuilder sbuf = new StringBuilder();
TypeParameter.toString(sbuf, params);
sbuf.append(" extends ").append(superClass);
@@ -246,7 +246,7 @@ public class SignatureAttribute extends AttributeInfo {
* Returns the encoded string representing the method type signature.
*/
public String encode() {
- StringBuffer sbuf = new StringBuffer();
+ StringBuilder sbuf = new StringBuilder();
if (params.length > 0) {
sbuf.append('<');
for (int i = 0; i < params.length; i++)
@@ -320,7 +320,7 @@ public class SignatureAttribute extends AttributeInfo {
*/
@Override
public String toString() {
- StringBuffer sbuf = new StringBuffer();
+ StringBuilder sbuf = new StringBuilder();
TypeParameter.toString(sbuf, typeParams);
sbuf.append(" (");
@@ -339,7 +339,7 @@ public class SignatureAttribute extends AttributeInfo {
* Returns the encoded string representing the method type signature.
*/
public String encode() {
- StringBuffer sbuf = new StringBuffer();
+ StringBuilder sbuf = new StringBuilder();
if (typeParams.length > 0) {
sbuf.append('<');
for (int i = 0; i < typeParams.length; i++)
@@ -450,7 +450,7 @@ public class SignatureAttribute extends AttributeInfo {
return sbuf.toString();
}
- static void toString(StringBuffer sbuf, TypeParameter[] tp) {
+ static void toString(StringBuilder sbuf, TypeParameter[] tp) {
sbuf.append('<');
for (int i = 0; i < tp.length; i++) {
if (i > 0)
@@ -462,7 +462,7 @@ public class SignatureAttribute extends AttributeInfo {
sbuf.append('>');
}
- void encode(StringBuffer sb) {
+ void encode(StringBuilder sb) {
sb.append(name);
if (superClass == null)
sb.append(":Ljava/lang/Object;");
@@ -570,7 +570,7 @@ public class SignatureAttribute extends AttributeInfo {
return "? super " + type;
}
- static void encode(StringBuffer sb, TypeArgument[] args) {
+ static void encode(StringBuilder sb, TypeArgument[] args) {
sb.append('<');
for (int i = 0; i < args.length; i++) {
TypeArgument ta = args[i];
@@ -589,8 +589,8 @@ public class SignatureAttribute extends AttributeInfo {
* Primitive types and object types.
*/
public static abstract class Type {
- abstract void encode(StringBuffer sb);
- static void toString(StringBuffer sbuf, Type[] ts) {
+ abstract void encode(StringBuilder sb);
+ static void toString(StringBuilder sbuf, Type[] ts) {
for (int i = 0; i < ts.length; i++) {
if (i > 0)
sbuf.append(", ");
@@ -647,7 +647,7 @@ public class SignatureAttribute extends AttributeInfo {
}
@Override
- void encode(StringBuffer sb) {
+ void encode(StringBuilder sb) {
sb.append(descriptor);
}
}
@@ -661,7 +661,7 @@ public class SignatureAttribute extends AttributeInfo {
* Returns the encoded string representing the object type signature.
*/
public String encode() {
- StringBuffer sb = new StringBuffer();
+ StringBuilder sb = new StringBuilder();
encode(sb);
return sb.toString();
}
@@ -782,13 +782,13 @@ public class SignatureAttribute extends AttributeInfo {
}
@Override
- void encode(StringBuffer sb) {
+ void encode(StringBuilder sb) {
sb.append('L');
encode2(sb);
sb.append(';');
}
- void encode2(StringBuffer sb) {
+ void encode2(StringBuilder sb) {
ClassType parent = getDeclaringClass();
if (parent != null) {
parent.encode2(sb);
@@ -876,7 +876,7 @@ public class SignatureAttribute extends AttributeInfo {
}
@Override
- void encode(StringBuffer sb) {
+ void encode(StringBuilder sb) {
for (int i = 0; i < dim; i++)
sb.append('[');
@@ -919,7 +919,7 @@ public class SignatureAttribute extends AttributeInfo {
}
@Override
- void encode(StringBuffer sb) {
+ void encode(StringBuilder sb) {
sb.append('T').append(name).append(';');
}
}