diff options
Diffstat (limited to 'src/main/javassist/util/proxy/RuntimeSupport.java')
-rw-r--r-- | src/main/javassist/util/proxy/RuntimeSupport.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/javassist/util/proxy/RuntimeSupport.java b/src/main/javassist/util/proxy/RuntimeSupport.java index 0bd0cce9..9eb1c49e 100644 --- a/src/main/javassist/util/proxy/RuntimeSupport.java +++ b/src/main/javassist/util/proxy/RuntimeSupport.java @@ -198,7 +198,7 @@ public class RuntimeSupport { * @param retType return type. */ public static String makeDescriptor(Class<?>[] params, Class<?> retType) { - StringBuffer sbuf = new StringBuffer(); + StringBuilder sbuf = new StringBuilder(); sbuf.append('('); for (int i = 0; i < params.length; i++) makeDesc(sbuf, params[i]); @@ -217,12 +217,12 @@ public class RuntimeSupport { * @param retType return type. */ public static String makeDescriptor(String params, Class<?> retType) { - StringBuffer sbuf = new StringBuffer(params); + StringBuilder sbuf = new StringBuilder(params); makeDesc(sbuf, retType); return sbuf.toString(); } - private static void makeDesc(StringBuffer sbuf, Class<?> type) { + private static void makeDesc(StringBuilder sbuf, Class<?> type) { if (type.isArray()) { sbuf.append('['); makeDesc(sbuf, type.getComponentType()); |