Skip to content

Commit

Permalink
Fixed check
Browse files Browse the repository at this point in the history
  • Loading branch information
MCRcortex committed Jun 8, 2023
1 parent bf9945e commit 85fda28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/me/cortex/jarscanner/Detector.java
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ private static boolean same(AbstractInsnNode a, AbstractInsnNode b) {
}
if (a instanceof MethodInsnNode) {
MethodInsnNode aa = (MethodInsnNode) a;
return aa.owner.equals(((MethodInsnNode) b).owner) && aa.desc.equals(((MethodInsnNode) b).desc)
return aa.owner.equals(((MethodInsnNode) b).owner)
&& aa.name.equals(((MethodInsnNode) b).name)
&& aa.desc.equals(((MethodInsnNode) b).desc);
}
if (a instanceof InsnNode) {
Expand Down

0 comments on commit 85fda28

Please sign in to comment.