Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8252127: Optimize sun.invoke.util.BytecodeDescriptor.unparse
Reviewed-by: mchung, rriggs
  • Loading branch information
dreis2211 authored and Roger Riggs committed Aug 21, 2020
1 parent 96616ea commit ddd632e238550d2ed5422c8cecad93b8b62b119f
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/java.base/share/classes/sun/invoke/util/BytecodeDescriptor.java
@@ -110,9 +110,7 @@ public static String unparse(Class<?> type) {
} 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) {

0 comments on commit ddd632e

Please sign in to comment.