Refactor: Make copy constructor of ManaCostsImpl private. Added missing field to it

This commit is contained in:
Alex Vasile 2022-06-06 09:55:03 -04:00
parent d09ec3d67c
commit 7ebe0844a2

View file

@ -42,13 +42,14 @@ public class ManaCostsImpl<T extends ManaCost> extends ArrayList<T> implements M
load(mana);
}
public ManaCostsImpl(final ManaCostsImpl<T> costs) {
private ManaCostsImpl(final ManaCostsImpl<T> costs) {
this.id = costs.id;
this.text = costs.text;
for (T cost : costs) {
this.add(cost.copy());
}
this.phyrexian = costs.phyrexian;
this.phyrexianPaid = costs.phyrexianPaid;
}
@Override