Compare method signatures when comparing invokes

This commit is contained in:
Adam
2016-02-12 15:00:41 -05:00
parent bf03c60731
commit 1272d7b263
4 changed files with 12 additions and 0 deletions

View File

@@ -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();

View File

@@ -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();

View File

@@ -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();

View File

@@ -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();