Some formatting.

This commit is contained in:
LevelX2 2014-06-20 19:26:27 +02:00
parent d27540a502
commit 10f6cbc2d5
3 changed files with 7 additions and 8 deletions

View file

@ -31,7 +31,6 @@ package mage.abilities.costs.common;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import mage.abilities.Ability;
import mage.abilities.costs.CostImpl;
import mage.cards.Card;
@ -40,14 +39,14 @@ import mage.constants.Zone;
import mage.game.Game;
import mage.players.Player;
import mage.target.common.TargetCardInHand;
/**
*
* @author LevelX2
*/
public class ExileFromHandCost extends CostImpl {
List<Card> cards = new ArrayList<Card>();
List<Card> cards = new ArrayList<>();
public ExileFromHandCost(TargetCardInHand target) {
this.addTarget(target);

View file

@ -55,8 +55,8 @@ import mage.watchers.common.CommanderCombatDamageWatcher;
public abstract class GameCommanderImpl extends GameImpl {
private final Map<UUID, Cards> mulliganedCards = new HashMap<UUID, Cards>();
private final Set<CommanderCombatDamageWatcher> commanderCombatWatcher = new HashSet<CommanderCombatDamageWatcher>();
private final Map<UUID, Cards> mulliganedCards = new HashMap<>();
private final Set<CommanderCombatDamageWatcher> commanderCombatWatcher = new HashSet<>();
public GameCommanderImpl(MultiplayerAttackOption attackOption, RangeOfInfluence range, int freeMulligans) {
super(attackOption, range, freeMulligans);

View file

@ -51,8 +51,8 @@ import mage.watchers.Watcher;
*/
public class ProwlWatcher extends Watcher {
private Map<UUID, Set<String>> damagingSubtypes = new HashMap<UUID, Set<String>>();
private Set<UUID> allSubtypes = new HashSet<UUID>();
private final Map<UUID, Set<String>> damagingSubtypes = new HashMap<>();
private final Set<UUID> allSubtypes = new HashSet<>();
public ProwlWatcher() {
super("Prowl", WatcherScope.GAME);
@ -82,7 +82,7 @@ public class ProwlWatcher extends Watcher {
} else {
Set<String> subtypes = damagingSubtypes.get(creature.getControllerId());
if (subtypes == null) {
subtypes = new LinkedHashSet<String>();
subtypes = new LinkedHashSet<>();
}
subtypes.addAll(creature.getSubtype());
damagingSubtypes.put(creature.getControllerId(), subtypes);