forked from External/mage
introduced StringUtil class with .isEmpty(String input) and .isNotEmpty(String input), to replace str != null && str.length()>0 statements
This commit is contained in:
parent
fb15c79964
commit
f1cf9e7adb
47 changed files with 132 additions and 96 deletions
|
|
@ -36,6 +36,7 @@ import mage.constants.Outcome;
|
|||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
import mage.util.CardUtil;
|
||||
import mage.util.StringUtil;
|
||||
|
||||
/**
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
|
|
@ -83,7 +84,7 @@ public class DrawCardSourceControllerEffect extends OneShotEffect {
|
|||
sb.append("s");
|
||||
}
|
||||
String message = amount.getMessage();
|
||||
if (message.length() > 0) {
|
||||
if (StringUtil.isNotEmpty(message)) {
|
||||
sb.append(" for each ");
|
||||
}
|
||||
sb.append(message);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue