From faf8a450da5604e22dec9e5c866c0e1af2756d9f Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Fri, 14 Jun 2013 00:31:29 +0200 Subject: [PATCH] [Minor] Formatting. --- .../effects/common/CantCounterSourceEffect.java | 3 ++- Mage/src/mage/game/stack/SpellStack.java | 15 ++++++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Mage/src/mage/abilities/effects/common/CantCounterSourceEffect.java b/Mage/src/mage/abilities/effects/common/CantCounterSourceEffect.java index d284a72b807..5326892a04f 100644 --- a/Mage/src/mage/abilities/effects/common/CantCounterSourceEffect.java +++ b/Mage/src/mage/abilities/effects/common/CantCounterSourceEffect.java @@ -71,8 +71,9 @@ public class CantCounterSourceEffect extends ReplacementEffectImpl { top = this.peek(); top.resolve(game); } finally { - if (top != null) + if (top != null) { this.remove(top); + } } } @@ -89,11 +90,13 @@ public class SpellStack extends ArrayDeque { public StackObject getStackObject(UUID id) { for (StackObject stackObject: this) { UUID objectId = stackObject.getId(); - if (objectId.equals(id)) + if (objectId.equals(id)) { return stackObject; + } UUID sourceId = stackObject.getSourceId(); - if (sourceId.equals(id)) + if (sourceId.equals(id)) { return stackObject; + } } return null; } @@ -101,10 +104,12 @@ public class SpellStack extends ArrayDeque { public Spell getSpell(UUID id) { for (StackObject stackObject: this) { if (stackObject.getId().equals(id)) { - if (stackObject instanceof Spell) + if (stackObject instanceof Spell) { return (Spell)stackObject; - else + } + else { return null; + } } } return null;