This clone stuff is causing me headaches.

This commit is contained in:
Adam
2015-11-14 23:14:41 -05:00
parent 66084e1398
commit 7e5b99fe4f
2 changed files with 16 additions and 0 deletions

View File

@@ -32,6 +32,14 @@ public class LookupSwitch extends Instruction implements JumpingInstruction
super(instructions, type, pc);
}
@Override
public Instruction clone()
{
LookupSwitch i = (LookupSwitch) super.clone();
i.branchi = new ArrayList<>(branchi);
return i;
}
@Override
public void load(DataInputStream is) throws IOException
{

View File

@@ -31,6 +31,14 @@ public class TableSwitch extends Instruction implements JumpingInstruction
super(instructions, type, pc);
}
@Override
public Instruction clone()
{
TableSwitch i = (TableSwitch) super.clone();
i.branchi = new ArrayList<>(branchi);
return i;
}
@Override
public void load(DataInputStream is) throws IOException
{