mirror of
https://github.com/magefree/mage.git
synced 2025-12-30 07:22:03 -08:00
Merge pull request #976 from lunaskyrise/unchecked-and-deprecated
Remove most "has been deprecated" and "unchecked conversion" errors
This commit is contained in:
commit
c6d0c78d16
43 changed files with 327 additions and 313 deletions
|
|
@ -3,7 +3,7 @@ package mage.abilities.costs;
|
|||
import mage.abilities.Ability;
|
||||
import mage.game.Game;
|
||||
|
||||
public class AlternativeCostImpl extends CostsImpl implements AlternativeCost {
|
||||
public class AlternativeCostImpl<T extends Cost> extends CostsImpl<T> implements AlternativeCost {
|
||||
|
||||
protected String name;
|
||||
|
||||
|
|
@ -13,7 +13,7 @@ public class AlternativeCostImpl extends CostsImpl implements AlternativeCost {
|
|||
|
||||
public AlternativeCostImpl(String name, Cost cost) {
|
||||
this.name = name;
|
||||
this.add(cost);
|
||||
this.add((T)cost);
|
||||
}
|
||||
|
||||
public AlternativeCostImpl(final AlternativeCostImpl cost) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue