Guava migration - Inline Iterables.isEmpty (Collection overload)

This commit is contained in:
Jetz
2024-09-06 19:55:57 -04:00
parent 4c8a94b18a
commit efe55efa43
4 changed files with 4 additions and 9 deletions

View File

@@ -12,7 +12,6 @@ import forge.ai.GameState;
import forge.deck.Deck;
import forge.game.player.Player;
import forge.item.IPaperCard;
import forge.util.Iterables;
import forge.util.collect.FCollection;
import org.apache.commons.lang3.StringUtils;
@@ -680,7 +679,7 @@ public class MatchController extends AbstractGuiGame {
@Override
public GameEntityView chooseSingleEntityForEffect(final String title, final List<? extends GameEntityView> optionList, final DelayedReveal delayedReveal, final boolean isOptional) {
if (delayedReveal == null || Iterables.isEmpty(delayedReveal.getCards())) {
if (delayedReveal == null || delayedReveal.getCards().isEmpty()) {
if (isOptional) {
return SGuiChoose.oneOrNone(title, optionList);
}