introduced StringUtil class with .isEmpty(String input) and .isNotEmpty(String input), to replace str != null && str.length()>0 statements

This commit is contained in:
ingmargoudt 2016-09-16 20:51:51 +02:00
parent fb15c79964
commit f1cf9e7adb
47 changed files with 132 additions and 96 deletions

View file

@ -37,6 +37,7 @@ import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.target.Target;
import mage.util.CardUtil;
import mage.util.StringUtil;
/**
* @author BetaSteward_at_googlemail.com
@ -76,7 +77,7 @@ public class TapTargetEffect extends OneShotEffect {
@Override
public String getText(Mode mode) {
if (staticText.length() > 0) {
if (StringUtil.isNotEmpty(staticText)) {
return "tap " + staticText;
}