You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 23, 2018. It is now read-only.
In Type.java, a number of String to char[] conversions are performed to call into getType. If this method was duplicated to operatoe on String directly, those conversions could be avoided.
public static Type getReturnType(final String methodDescriptor) {
char[] buf = methodDescriptor.toCharArray();
return getType(buf, methodDescriptor.indexOf(')') + 1);
}
Could use lastIndexOf to search from the end of the descriptor.
Identified by @retronym scala/scala#6075 (comment)
https://github.com/scala/scala-asm/blob/v5.1.0-scala-2/src/main/java/scala/tools/asm/tree/analysis/Frame.java#L623-L632
Type.getArgumentTypes(desc).length/Type.getReturnType(desc) == Type.VOID_TYPEcould be directly implemented without constructing aTypeisntanceIn
Type.java, a number ofStringtochar[]conversions are performed to call intogetType. If this method was duplicated to operatoe onStringdirectly, those conversions could be avoided.Could use
lastIndexOfto search from the end of the descriptor.