From 122c225248ff02098bf66ba57afa2cb087d3a70c Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Wed, 17 Apr 2013 17:34:26 +0200 Subject: [PATCH] [minor] formating --- Mage/src/mage/game/permanent/PermanentToken.java | 8 ++++---- Mage/src/mage/util/functions/CopyFunction.java | 6 ++++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Mage/src/mage/game/permanent/PermanentToken.java b/Mage/src/mage/game/permanent/PermanentToken.java index 1dd72f618f..9ee4a069ec 100644 --- a/Mage/src/mage/game/permanent/PermanentToken.java +++ b/Mage/src/mage/game/permanent/PermanentToken.java @@ -60,15 +60,15 @@ public class PermanentToken extends PermanentImpl { @Override public void reset(Game game) { - Token copy = token.copy(); - copyFromToken(copy, game); + Token tokenCopy = token.copy(); + copyFromToken(tokenCopy, game); super.reset(game); } - protected void copyFromToken(Token token, Game game) { + private void copyFromToken(Token token, Game game) { this.name = token.getName(); this.abilities.clear(); - for (Ability ability: token.getAbilities()) { + for (Ability ability : token.getAbilities()) { this.addAbility(ability, game); } this.manaCost.clear(); diff --git a/Mage/src/mage/util/functions/CopyFunction.java b/Mage/src/mage/util/functions/CopyFunction.java index 7e7b84bdac..aef9dca7fa 100644 --- a/Mage/src/mage/util/functions/CopyFunction.java +++ b/Mage/src/mage/util/functions/CopyFunction.java @@ -42,15 +42,17 @@ public class CopyFunction implements Function { protected Game game; public CopyFunction(Card target) { - if (target == null) + if (target == null) { throw new IllegalArgumentException("Target can't be null"); + } this.target = target; } @Override public Card apply(Card source) { - if (target == null) + if (target == null) { throw new IllegalArgumentException("Target can't be null"); + } target.setName(source.getName()); target.getColor().setColor(source.getColor());