From 140bf42f60820579530f88ed7c45d43210ccc575 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Tue, 11 Jun 2013 17:22:21 +0200 Subject: [PATCH] Minor formatting. --- Mage/src/mage/cards/CardsImpl.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Mage/src/mage/cards/CardsImpl.java b/Mage/src/mage/cards/CardsImpl.java index 8875f3256e..8d9e804ec8 100644 --- a/Mage/src/mage/cards/CardsImpl.java +++ b/Mage/src/mage/cards/CardsImpl.java @@ -87,15 +87,17 @@ public class CardsImpl extends LinkedHashSet implements Cards, Serializabl @Override public Card get(UUID cardId, Game game) { - if (this.contains(cardId)) + if (this.contains(cardId)) { return game.getCard(cardId); + } return null; } @Override public void remove(Card card) { - if (card == null) + if (card == null) { return; + } this.remove(card.getId()); } @@ -109,8 +111,9 @@ public class CardsImpl extends LinkedHashSet implements Cards, Serializabl @Override public Card getRandom(Game game) { - if (this.size() == 0) + if (this.size() == 0) { return null; + } UUID[] cards = this.toArray(new UUID[0]); return game.getCard(cards[rnd.nextInt(cards.length)]); } @@ -118,9 +121,10 @@ public class CardsImpl extends LinkedHashSet implements Cards, Serializabl @Override public int count(FilterCard filter, Game game) { int result = 0; - for (UUID card: this) { - if (filter.match(game.getCard(card), game)) + for (UUID cardId: this) { + if (filter.match(game.getCard(cardId), game)) { result++; + } } return result; }