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

Print this page

        

*** 203,213 **** 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(); sb.append('('); int p; do { String s; p = method.indexOf(',', start); --- 203,213 ---- 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(); ! StringBuilder sb = new StringBuilder(); sb.append('('); int p; do { String s; p = method.indexOf(',', start);
*** 227,237 **** private static String map(final String type, final boolean defaultPackage) { if ("".equals(type)) { return type; } ! StringBuffer sb = new StringBuffer(); int index = 0; while ((index = type.indexOf("[]", index) + 1) > 0) { sb.append('['); } --- 227,237 ---- private static String map(final String type, final boolean defaultPackage) { if ("".equals(type)) { return type; } ! StringBuilder sb = new StringBuilder(); int index = 0; while ((index = type.indexOf("[]", index) + 1) > 0) { sb.append('['); }