mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Cleanup - Collection.toArray
This commit is contained in:
@@ -104,7 +104,7 @@ public class TokenInfo {
|
||||
if (c.getType().isLegendary()) {
|
||||
relevantTypes.add("Legendary");
|
||||
}
|
||||
return relevantTypes.toArray(new String[relevantTypes.size()]);
|
||||
return relevantTypes.toArray(new String[0]);
|
||||
}
|
||||
|
||||
private Card toCard(Game game) {
|
||||
|
||||
@@ -149,7 +149,7 @@ public class Untap extends Phase {
|
||||
}
|
||||
}
|
||||
final CardCollection untapList = new CardCollection(list);
|
||||
final String[] restrict = restrictUntap.keySet().toArray(new String[restrictUntap.keySet().size()]);
|
||||
final String[] restrict = restrictUntap.keySet().toArray(new String[0]);
|
||||
list = CardLists.filter(list, c -> {
|
||||
if (!Untap.canUntap(c)) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user