From b1cc464d9833a7287424be540ca53d16d5b9783b Mon Sep 17 00:00:00 2001 From: Neil Gentleman Date: Mon, 23 Nov 2015 22:53:56 -0800 Subject: [PATCH] remove useless .toString() --- .../mage/abilities/effects/common/ReturnToHandTargetEffect.java | 2 +- .../effects/common/combat/CantBeBlockedByOneAllEffect.java | 2 +- .../common/discard/DiscardCardYouChooseTargetEffect.java | 2 +- Mage/src/mage/abilities/keyword/EquipAbility.java | 2 +- Mage/src/mage/abilities/keyword/OutlastAbility.java | 2 +- Mage/src/mage/abilities/keyword/RenownAbility.java | 2 +- Mage/src/mage/players/PlayerImpl.java | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Mage/src/mage/abilities/effects/common/ReturnToHandTargetEffect.java b/Mage/src/mage/abilities/effects/common/ReturnToHandTargetEffect.java index f4af1e29b09..c4f1fd5a98c 100644 --- a/Mage/src/mage/abilities/effects/common/ReturnToHandTargetEffect.java +++ b/Mage/src/mage/abilities/effects/common/ReturnToHandTargetEffect.java @@ -104,7 +104,7 @@ public class ReturnToHandTargetEffect extends OneShotEffect { if (!target.getTargetName().startsWith("another")) { sb.append("target "); } - sb.append(target.getTargetName()).append(" to its owner's hand").toString(); + sb.append(target.getTargetName()).append(" to its owner's hand"); return sb.toString(); } } diff --git a/Mage/src/mage/abilities/effects/common/combat/CantBeBlockedByOneAllEffect.java b/Mage/src/mage/abilities/effects/common/combat/CantBeBlockedByOneAllEffect.java index f26ba37acd4..36617682c8e 100644 --- a/Mage/src/mage/abilities/effects/common/combat/CantBeBlockedByOneAllEffect.java +++ b/Mage/src/mage/abilities/effects/common/combat/CantBeBlockedByOneAllEffect.java @@ -59,7 +59,7 @@ public class CantBeBlockedByOneAllEffect extends ContinuousEffectImpl { if (duration.equals(Duration.EndOfTurn)) { sb.append("this turn "); } - sb.append("except by ").append(CardUtil.numberToText(amount)).append(" or more creatures").toString(); + sb.append("except by ").append(CardUtil.numberToText(amount)).append(" or more creatures"); staticText = sb.toString(); } diff --git a/Mage/src/mage/abilities/effects/common/discard/DiscardCardYouChooseTargetEffect.java b/Mage/src/mage/abilities/effects/common/discard/DiscardCardYouChooseTargetEffect.java index d77f5ca6a46..4ab5210339c 100644 --- a/Mage/src/mage/abilities/effects/common/discard/DiscardCardYouChooseTargetEffect.java +++ b/Mage/src/mage/abilities/effects/common/discard/DiscardCardYouChooseTargetEffect.java @@ -221,7 +221,7 @@ public class DiscardCardYouChooseTargetEffect extends OneShotEffect { sb.append(" of them."); } - sb.append(" That player discards ").append(discardMultipleCards ? "those cards" : "that card").toString(); + sb.append(" That player discards ").append(discardMultipleCards ? "those cards" : "that card"); return sb.toString(); } } diff --git a/Mage/src/mage/abilities/keyword/EquipAbility.java b/Mage/src/mage/abilities/keyword/EquipAbility.java index 5316e6ff92c..7e6ff39582f 100644 --- a/Mage/src/mage/abilities/keyword/EquipAbility.java +++ b/Mage/src/mage/abilities/keyword/EquipAbility.java @@ -80,7 +80,7 @@ public class EquipAbility extends ActivatedAbilityImpl { @Override public String getRule() { StringBuilder sb = new StringBuilder("Equip ").append(costs.getText()).append(manaCosts.getText()); - sb.append(" (").append(manaCosts.getText()).append(": Attach to target creature you control. Equip only as a sorcery.)").toString(); + sb.append(" (").append(manaCosts.getText()).append(": Attach to target creature you control. Equip only as a sorcery.)"); return sb.toString(); } diff --git a/Mage/src/mage/abilities/keyword/OutlastAbility.java b/Mage/src/mage/abilities/keyword/OutlastAbility.java index a04377e4060..3cf864db724 100644 --- a/Mage/src/mage/abilities/keyword/OutlastAbility.java +++ b/Mage/src/mage/abilities/keyword/OutlastAbility.java @@ -60,7 +60,7 @@ public class OutlastAbility extends ActivatedAbilityImpl { @Override public String getRule() { StringBuilder sb = new StringBuilder("Outlast ").append(manaCosts.getText()); - sb.append(" (").append(getManaCosts().getText()).append(", ").append(getCosts().getText()).append(": Put a +1/+1 counter on this creature. Outlast only as a sorcery.)").toString(); + sb.append(" (").append(getManaCosts().getText()).append(", ").append(getCosts().getText()).append(": Put a +1/+1 counter on this creature. Outlast only as a sorcery.)"); return sb.toString(); } diff --git a/Mage/src/mage/abilities/keyword/RenownAbility.java b/Mage/src/mage/abilities/keyword/RenownAbility.java index 878a7659768..609379de044 100644 --- a/Mage/src/mage/abilities/keyword/RenownAbility.java +++ b/Mage/src/mage/abilities/keyword/RenownAbility.java @@ -103,7 +103,7 @@ class BecomesRenownedSourceEffect extends OneShotEffect { sb.append(renownValue == Integer.MAX_VALUE ? "X" : renownValue) .append(". (When this creature deals combat damage to a player, if it isn't renowned, put ") .append(renownValue == Integer.MAX_VALUE ? "X" : CardUtil.numberToText(renownValue, "a")) - .append(" +1/+1 counter on it and it becomes renowned.)").toString(); + .append(" +1/+1 counter on it and it becomes renowned.)"); return sb.toString(); } diff --git a/Mage/src/mage/players/PlayerImpl.java b/Mage/src/mage/players/PlayerImpl.java index 55ce77993b0..5cc9ff27100 100644 --- a/Mage/src/mage/players/PlayerImpl.java +++ b/Mage/src/mage/players/PlayerImpl.java @@ -1489,7 +1489,7 @@ public abstract class PlayerImpl implements Player, Serializable { StringBuilder sb = new StringBuilder(message).append(" to untap").append(" (").append(Math.min(leftForUntap.size(), numberToUntap)).append(" in total"); MageObject effectSource = game.getObject(ability.getSourceId()); if (effectSource != null) { - sb.append(" from ").append(effectSource.getLogName()).toString(); + sb.append(" from ").append(effectSource.getLogName()); } sb.append(")"); filter.setMessage(sb.toString());