From dbc066c99869604e01da1f17eb81385390dbcb6c Mon Sep 17 00:00:00 2001 From: North Date: Sat, 24 May 2014 22:39:46 +0300 Subject: [PATCH] [refactoring] removed generic from TargetCreaturePermanent --- .../src/mage/sets/championsofkamigawa/Reciprocate.java | 3 +-- Mage.Sets/src/mage/sets/conflux/GiltspireAvenger.java | 3 +-- Mage.Sets/src/mage/sets/gatecrash/ExecutionersSwing.java | 3 +-- Mage.Sets/src/mage/sets/odyssey/AEtherBurst.java | 6 +++--- Mage.Sets/src/mage/sets/returntoravnica/AvengingArrow.java | 3 +-- Mage.Sets/src/mage/sets/worldwake/SearingBlaze.java | 3 +-- Mage/src/mage/target/common/TargetAttackingCreature.java | 3 ++- .../target/common/TargetAttackingOrBlockingCreature.java | 3 ++- Mage/src/mage/target/common/TargetCreaturePermanent.java | 2 +- 9 files changed, 13 insertions(+), 16 deletions(-) diff --git a/Mage.Sets/src/mage/sets/championsofkamigawa/Reciprocate.java b/Mage.Sets/src/mage/sets/championsofkamigawa/Reciprocate.java index 3bc51cb49e..f7f9710c43 100644 --- a/Mage.Sets/src/mage/sets/championsofkamigawa/Reciprocate.java +++ b/Mage.Sets/src/mage/sets/championsofkamigawa/Reciprocate.java @@ -41,7 +41,6 @@ import mage.filter.common.FilterCreaturePermanent; import mage.game.Game; import mage.game.permanent.Permanent; import mage.target.TargetPermanent; -import mage.target.common.TargetCreaturePermanent; import mage.watchers.common.PlayerDamagedBySourceWatcher; /** @@ -69,7 +68,7 @@ public class Reciprocate extends CardImpl { } -class ReciprocateTarget> extends TargetPermanent> { +class ReciprocateTarget extends TargetPermanent { public ReciprocateTarget() { super(1, 1, new FilterCreaturePermanent(), false); diff --git a/Mage.Sets/src/mage/sets/conflux/GiltspireAvenger.java b/Mage.Sets/src/mage/sets/conflux/GiltspireAvenger.java index 61bc2cbe6a..2a1896a545 100644 --- a/Mage.Sets/src/mage/sets/conflux/GiltspireAvenger.java +++ b/Mage.Sets/src/mage/sets/conflux/GiltspireAvenger.java @@ -45,7 +45,6 @@ import mage.filter.common.FilterCreaturePermanent; import mage.game.Game; import mage.game.permanent.Permanent; import mage.target.TargetPermanent; -import mage.target.common.TargetCreaturePermanent; import mage.watchers.common.PlayerDamagedBySourceWatcher; /** @@ -88,7 +87,7 @@ public class GiltspireAvenger extends CardImpl { } } -class GiltspireAvengerTarget> extends TargetPermanent> { +class GiltspireAvengerTarget extends TargetPermanent { public GiltspireAvengerTarget() { super(1, 1, new FilterCreaturePermanent(), false); diff --git a/Mage.Sets/src/mage/sets/gatecrash/ExecutionersSwing.java b/Mage.Sets/src/mage/sets/gatecrash/ExecutionersSwing.java index e067b251d9..713bfbaf9a 100644 --- a/Mage.Sets/src/mage/sets/gatecrash/ExecutionersSwing.java +++ b/Mage.Sets/src/mage/sets/gatecrash/ExecutionersSwing.java @@ -41,7 +41,6 @@ import mage.filter.common.FilterCreaturePermanent; import mage.game.Game; import mage.game.permanent.Permanent; import mage.target.TargetPermanent; -import mage.target.common.TargetCreaturePermanent; import mage.watchers.common.SourceDidDamageWatcher; /** @@ -74,7 +73,7 @@ public class ExecutionersSwing extends CardImpl { } } -class TargetCreaturePermanentThatDealtDamageThisTurn> extends TargetPermanent> { +class TargetCreaturePermanentThatDealtDamageThisTurn extends TargetPermanent { public TargetCreaturePermanentThatDealtDamageThisTurn() { super(1, 1, new FilterCreaturePermanent(), false); diff --git a/Mage.Sets/src/mage/sets/odyssey/AEtherBurst.java b/Mage.Sets/src/mage/sets/odyssey/AEtherBurst.java index 40408c6fc7..eb1a04508a 100644 --- a/Mage.Sets/src/mage/sets/odyssey/AEtherBurst.java +++ b/Mage.Sets/src/mage/sets/odyssey/AEtherBurst.java @@ -39,7 +39,7 @@ import mage.filter.predicate.mageobject.NamePredicate; import mage.game.Game; import mage.players.Player; import mage.target.Target; -import mage.target.common.TargetCreaturePermanent; +import mage.target.TargetPermanent; import java.util.UUID; @@ -94,12 +94,12 @@ public class AEtherBurst extends CardImpl { } } -class DynamicTargetCreaturePermanent> extends TargetCreaturePermanent> { +class DynamicTargetCreaturePermanent extends TargetPermanent { private static final FilterCreaturePermanent filterCreature = new FilterCreaturePermanent("creatures"); public DynamicTargetCreaturePermanent() { - super(new TargetCreaturePermanent(filterCreature)); + super(filterCreature); } public DynamicTargetCreaturePermanent(final DynamicTargetCreaturePermanent target) { diff --git a/Mage.Sets/src/mage/sets/returntoravnica/AvengingArrow.java b/Mage.Sets/src/mage/sets/returntoravnica/AvengingArrow.java index defa12d87c..e90a93c94f 100644 --- a/Mage.Sets/src/mage/sets/returntoravnica/AvengingArrow.java +++ b/Mage.Sets/src/mage/sets/returntoravnica/AvengingArrow.java @@ -39,7 +39,6 @@ import mage.filter.common.FilterCreaturePermanent; import mage.game.Game; import mage.game.permanent.Permanent; import mage.target.TargetPermanent; -import mage.target.common.TargetCreaturePermanent; import mage.watchers.common.SourceDidDamageWatcher; /** @@ -70,7 +69,7 @@ public class AvengingArrow extends CardImpl { } } -class AvengingArrowTarget> extends TargetPermanent> { +class AvengingArrowTarget extends TargetPermanent { public AvengingArrowTarget() { super(1, 1, new FilterCreaturePermanent(), false); diff --git a/Mage.Sets/src/mage/sets/worldwake/SearingBlaze.java b/Mage.Sets/src/mage/sets/worldwake/SearingBlaze.java index 9ee24db118..d194aec1c6 100644 --- a/Mage.Sets/src/mage/sets/worldwake/SearingBlaze.java +++ b/Mage.Sets/src/mage/sets/worldwake/SearingBlaze.java @@ -45,7 +45,6 @@ import mage.game.stack.StackObject; import mage.players.Player; import mage.target.TargetPermanent; import mage.target.TargetPlayer; -import mage.target.common.TargetCreaturePermanent; import mage.watchers.Watcher; import mage.watchers.common.LandfallWatcher; @@ -122,7 +121,7 @@ class SearingBlazeEffect extends OneShotEffect { } -class SearingBlazeTarget> extends TargetPermanent> { +class SearingBlazeTarget extends TargetPermanent { public SearingBlazeTarget() { super(1, 1, new FilterCreaturePermanent(), false); diff --git a/Mage/src/mage/target/common/TargetAttackingCreature.java b/Mage/src/mage/target/common/TargetAttackingCreature.java index 8f822bfe98..4f8edad189 100644 --- a/Mage/src/mage/target/common/TargetAttackingCreature.java +++ b/Mage/src/mage/target/common/TargetAttackingCreature.java @@ -29,12 +29,13 @@ package mage.target.common; import mage.filter.common.FilterAttackingCreature; +import mage.target.TargetPermanent; /** * * @author BetaSteward_at_googlemail.com */ -public class TargetAttackingCreature extends TargetCreaturePermanent { +public class TargetAttackingCreature extends TargetPermanent { public TargetAttackingCreature() { this(1, 1, new FilterAttackingCreature(), false); diff --git a/Mage/src/mage/target/common/TargetAttackingOrBlockingCreature.java b/Mage/src/mage/target/common/TargetAttackingOrBlockingCreature.java index c8c2939da9..c17a159f91 100644 --- a/Mage/src/mage/target/common/TargetAttackingOrBlockingCreature.java +++ b/Mage/src/mage/target/common/TargetAttackingOrBlockingCreature.java @@ -29,12 +29,13 @@ package mage.target.common; import mage.filter.common.FilterAttackingOrBlockingCreature; +import mage.target.TargetPermanent; /** * * @author nantuko */ -public class TargetAttackingOrBlockingCreature extends TargetCreaturePermanent { +public class TargetAttackingOrBlockingCreature extends TargetPermanent { public TargetAttackingOrBlockingCreature() { this(1, 1, new FilterAttackingOrBlockingCreature(), false); diff --git a/Mage/src/mage/target/common/TargetCreaturePermanent.java b/Mage/src/mage/target/common/TargetCreaturePermanent.java index 6062a5de8d..4fcc832608 100644 --- a/Mage/src/mage/target/common/TargetCreaturePermanent.java +++ b/Mage/src/mage/target/common/TargetCreaturePermanent.java @@ -35,7 +35,7 @@ import mage.target.TargetPermanent; * * @author BetaSteward_at_googlemail.com */ -public class TargetCreaturePermanent> extends TargetPermanent> { +public class TargetCreaturePermanent extends TargetPermanent { public TargetCreaturePermanent() { this(1, 1, new FilterCreaturePermanent(), false);