diff --git a/Mage/src/mage/MageObjectImpl.java b/Mage/src/mage/MageObjectImpl.java index 7b83d997ba..6df594011c 100644 --- a/Mage/src/mage/MageObjectImpl.java +++ b/Mage/src/mage/MageObjectImpl.java @@ -41,7 +41,7 @@ import mage.abilities.keyword.ChangelingAbility; import mage.constants.CardType; import mage.game.Game; -public abstract class MageObjectImpl> implements MageObject { +public abstract class MageObjectImpl implements MageObject { protected UUID objectId; @@ -57,9 +57,6 @@ public abstract class MageObjectImpl> implements Mag protected MageInt toughness; protected boolean copy; - @Override - public abstract T copy(); - public MageObjectImpl() { this(UUID.randomUUID()); } @@ -73,7 +70,7 @@ public abstract class MageObjectImpl> implements Mag abilities = new AbilitiesImpl<>(); } - public MageObjectImpl(final MageObjectImpl object) { + public MageObjectImpl(final MageObjectImpl object) { objectId = object.objectId; name = object.name; manaCost = object.manaCost.copy(); diff --git a/Mage/src/mage/cards/CardImpl.java b/Mage/src/mage/cards/CardImpl.java index b57517c7d2..dd18824642 100644 --- a/Mage/src/mage/cards/CardImpl.java +++ b/Mage/src/mage/cards/CardImpl.java @@ -59,7 +59,7 @@ import mage.game.command.Commander; * * @param */ -public abstract class CardImpl> extends MageObjectImpl implements Card { +public abstract class CardImpl> extends MageObjectImpl implements Card { private static final long serialVersionUID = 1L; private static final Logger logger = Logger.getLogger(CardImpl.class); diff --git a/Mage/src/mage/game/permanent/token/Token.java b/Mage/src/mage/game/permanent/token/Token.java index f2713390fd..ccf62461cf 100644 --- a/Mage/src/mage/game/permanent/token/Token.java +++ b/Mage/src/mage/game/permanent/token/Token.java @@ -46,7 +46,7 @@ import mage.players.Player; import mage.util.CardUtil; -public class Token extends MageObjectImpl { +public class Token extends MageObjectImpl { protected String description; private UUID lastAddedTokenId;