8252127: Optimize sun.invoke.util.BytecodeDescriptor.unparse

Reviewed-by: mchung, rriggs
This commit is contained in:
Christoph Dreis 2020-08-21 09:29:08 -04:00 committed by Roger Riggs
parent fe8439f0d4
commit 9d00332ee5

View File

@ -110,9 +110,7 @@ public class BytecodeDescriptor {
} else if (type == int.class) { } else if (type == int.class) {
return "I"; return "I";
} }
StringBuilder sb = new StringBuilder(); return type.descriptorString();
unparseSig(type, sb);
return sb.toString();
} }
public static String unparse(MethodType type) { public static String unparse(MethodType type) {