From 9d00332ee5088a31b2930ab339fba447965c4aa3 Mon Sep 17 00:00:00 2001 From: Christoph Dreis Date: Fri, 21 Aug 2020 09:29:08 -0400 Subject: [PATCH] 8252127: Optimize sun.invoke.util.BytecodeDescriptor.unparse Reviewed-by: mchung, rriggs --- .../share/classes/sun/invoke/util/BytecodeDescriptor.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/java.base/share/classes/sun/invoke/util/BytecodeDescriptor.java b/src/java.base/share/classes/sun/invoke/util/BytecodeDescriptor.java index 1fdce4c714e..fa7af9239af 100644 --- a/src/java.base/share/classes/sun/invoke/util/BytecodeDescriptor.java +++ b/src/java.base/share/classes/sun/invoke/util/BytecodeDescriptor.java @@ -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) {