src/share/classes/jdk/internal/org/objectweb/asm/commons/Method.java

Print this page

        

@@ -203,11 +203,11 @@
         if (space == -1 || start == -1 || end == -1) {
             throw new IllegalArgumentException();
         }
         String returnType = method.substring(0, space);
         String methodName = method.substring(space + 1, start - 1).trim();
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         sb.append('(');
         int p;
         do {
             String s;
             p = method.indexOf(',', start);

@@ -227,11 +227,11 @@
     private static String map(final String type, final boolean defaultPackage) {
         if ("".equals(type)) {
             return type;
         }
 
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         int index = 0;
         while ((index = type.indexOf("[]", index) + 1) > 0) {
             sb.append('[');
         }