equals "" should be replaced with isEmpty

This commit is contained in:
vraskulin 2017-02-28 11:45:15 +03:00
parent 3600d03e2c
commit ad7d3c8078
6 changed files with 7 additions and 7 deletions

View file

@ -210,7 +210,7 @@ public class VerifyCardDataTest {
private void checkCost(Card card, JsonCard ref) {
String expected = ref.manaCost;
String cost = join(card.getManaCost().getSymbols());
if ("".equals(cost)) {
if (cost != null && cost.isEmpty()) {
cost = null;
}
if (cost != null) {