Compare method signatures when comparing invokes
This commit is contained in:
@@ -182,6 +182,9 @@ public class InvokeInterface extends Instruction implements InvokeInstruction
|
||||
InvokeInterface thisIi = (InvokeInterface) thisIc.getInstruction(),
|
||||
otherIi = (InvokeInterface) otherIc.getInstruction();
|
||||
|
||||
if (!thisIi.method.getNameAndType().getDescriptor().equals(otherIi.method.getNameAndType().getDescriptor()))
|
||||
return false;
|
||||
|
||||
List<net.runelite.deob.Method> thisMethods = thisIi.getMethods(),
|
||||
otherMethods = otherIi.getMethods();
|
||||
|
||||
|
||||
@@ -182,6 +182,9 @@ public class InvokeSpecial extends Instruction implements InvokeInstruction
|
||||
InvokeSpecial thisIi = (InvokeSpecial) thisIc.getInstruction(),
|
||||
otherIi = (InvokeSpecial) otherIc.getInstruction();
|
||||
|
||||
if (!thisIi.method.getNameAndType().getDescriptor().equals(otherIi.method.getNameAndType().getDescriptor()))
|
||||
return false;
|
||||
|
||||
List<net.runelite.deob.Method> thisMethods = thisIi.getMethods(),
|
||||
otherMethods = otherIi.getMethods();
|
||||
|
||||
|
||||
@@ -184,6 +184,9 @@ public class InvokeStatic extends Instruction implements InvokeInstruction
|
||||
InvokeStatic thisIi = (InvokeStatic) thisIc.getInstruction(),
|
||||
otherIi = (InvokeStatic) otherIc.getInstruction();
|
||||
|
||||
if (!thisIi.method.getNameAndType().getDescriptor().equals(otherIi.method.getNameAndType().getDescriptor()))
|
||||
return false;
|
||||
|
||||
List<net.runelite.deob.Method> thisMethods = thisIi.getMethods(),
|
||||
otherMethods = otherIi.getMethods();
|
||||
|
||||
|
||||
@@ -205,6 +205,9 @@ public class InvokeVirtual extends Instruction implements InvokeInstruction
|
||||
InvokeVirtual thisIi = (InvokeVirtual) thisIc.getInstruction(),
|
||||
otherIi = (InvokeVirtual) otherIc.getInstruction();
|
||||
|
||||
if (!thisIi.method.getNameAndType().getDescriptor().equals(otherIi.method.getNameAndType().getDescriptor()))
|
||||
return false;
|
||||
|
||||
List<net.runelite.deob.Method> thisMethods = thisIi.getMethods(),
|
||||
otherMethods = otherIi.getMethods();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user