This clone stuff is causing me headaches.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user