Don't have findMethodFromClass add methods twice, happens if finding first from a parent class

This commit is contained in:
Adam
2016-01-11 12:18:44 -05:00
parent 44372c8696
commit f81edec171
2 changed files with 2 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ public class InvokeInterface extends Instruction implements InvokeInstruction
private void findMethodFromClass(List<net.runelite.deob.Method> list, ClassFile clazz)
{
net.runelite.deob.Method m = clazz.findMethodDeep(method.getNameAndType());
if (m != null)
if (m != null && !list.contains(m))
list.add(m);
for (ClassFile cf : clazz.getChildren())

View File

@@ -115,7 +115,7 @@ public class InvokeVirtual extends Instruction implements InvokeInstruction
private void findMethodFromClass(List<net.runelite.deob.Method> list, ClassFile clazz)
{
net.runelite.deob.Method m = clazz.findMethodDeep(method.getNameAndType());
if (m != null)
if (m != null && !list.contains(m))
list.add(m);
for (ClassFile cf : clazz.getChildren())