mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
Few lambda's and removed explicit type from creating lists and hashmaps
This commit is contained in:
parent
0a3c95dde5
commit
11dc1e10f1
130 changed files with 725 additions and 1105 deletions
|
|
@ -5,11 +5,12 @@
|
|||
*/
|
||||
package mage.game;
|
||||
|
||||
import mage.ObjectColor;
|
||||
import mage.cards.Card;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import mage.ObjectColor;
|
||||
import mage.cards.Card;
|
||||
|
||||
/**
|
||||
* This class saves changed attributes of cards (e.g. in graveyard, exile or player hands or libraries).
|
||||
|
|
@ -23,7 +24,7 @@ public class CardAttribute implements Serializable {
|
|||
|
||||
public CardAttribute(Card card) {
|
||||
color = card.getColor(null).copy();
|
||||
subtype = new ArrayList<String>(card.getSubtype(null));
|
||||
subtype = new ArrayList<>(card.getSubtype(null));
|
||||
}
|
||||
|
||||
public CardAttribute(CardAttribute cardAttribute) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue