Merge pull request #976 from lunaskyrise/unchecked-and-deprecated

Remove most "has been deprecated" and "unchecked conversion" errors
This commit is contained in:
LevelX2 2015-05-19 14:48:25 +02:00
commit c6d0c78d16
43 changed files with 327 additions and 313 deletions

View file

@ -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) {