changeset 60637:5799a00da1a7

8252127: Optimize sun.invoke.util.BytecodeDescriptor.unparse Reviewed-by: mchung, rriggs Contributed-by: christoph.dreis@freenet.de
author rriggs
date Fri, 21 Aug 2020 09:29:08 -0400
parents 1c332a041243
children d7c4e028363e
files src/java.base/share/classes/sun/invoke/util/BytecodeDescriptor.java
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/sun/invoke/util/BytecodeDescriptor.java	Fri Aug 21 11:57:55 2020 +0200
+++ b/src/java.base/share/classes/sun/invoke/util/BytecodeDescriptor.java	Fri Aug 21 09:29:08 2020 -0400
@@ -110,9 +110,7 @@
         } 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) {