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
|
|
@ -80,7 +80,7 @@ public class CreateTokenTargetEffect extends OneShotEffect {
|
|||
sb.append(" attacking");
|
||||
}
|
||||
String message = amount.getMessage();
|
||||
if (message.length() > 0) {
|
||||
if (!message.isEmpty()) {
|
||||
sb.append(" for each ");
|
||||
}
|
||||
sb.append(message);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue