Skip to content

Commit

Permalink
1、完善获取参数名称
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyJingFish committed Jul 25, 2024
1 parent 56fef53 commit 7916eb9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ object WovenIntoCode {

val paramNamesMap: MutableMap<Int,String> =
mutableMapOf()
val localVarAttr:LocalVariableAttribute? = ctMethod.methodInfo.codeAttribute.getAttribute(LocalVariableAttribute.tag) as LocalVariableAttribute?
val localVarAttr:LocalVariableAttribute? = ctMethod.methodInfo.codeAttribute.getAttribute(LocalVariableAttribute.tag) as LocalVariableAttribute? ?: targetMethod.methodInfo.codeAttribute.getAttribute(LocalVariableAttribute.tag) as LocalVariableAttribute?
localVarAttr?.let{
val length = it.tableLength()
if (length > 1){
Expand Down

0 comments on commit 7916eb9

Please sign in to comment.