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) {
return "I";
}
StringBuilder sb = new StringBuilder();
unparseSig(type, sb);
return sb.toString();
return type.descriptorString();
}
public static String unparse(MethodType type) {