Skip to content

Commit

Permalink
1、修复bug
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyJingFish committed Jul 11, 2024
1 parent e3e3cbd commit 44fa5b4
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@ public Class<?>[] getParameterTypes() {
}

public Type[] getGenericParameterTypes() {
return targetMethod.getGenericParameterTypes();
Type[] types = targetMethod.getGenericParameterTypes();
if (isSuspend){
Type[] newTypes = new Class[types.length - 1];
System.arraycopy(types, 0, newTypes, 0, newTypes.length);
return newTypes;
}
return types;
}

public int getModifiers() {
Expand Down

0 comments on commit 44fa5b4

Please sign in to comment.