mirror of
https://github.com/magefree/mage.git
synced 2026-01-23 19:59:54 -08:00
code style: private static final
This commit is contained in:
parent
ef3be3987b
commit
45b54e8cc4
13 changed files with 20 additions and 22 deletions
|
|
@ -1390,7 +1390,7 @@ public abstract class AbilityImpl implements Ability {
|
|||
}
|
||||
|
||||
@Override
|
||||
final public List<CardIcon> getIcons() {
|
||||
public final List<CardIcon> getIcons() {
|
||||
return getIcons(null);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,11 +19,11 @@ public final class PlayableCountIcon extends CardIconImpl {
|
|||
super(CardIconType.PLAYABLE_COUNT, getHint(objectStats), getAmount(objectStats));
|
||||
}
|
||||
|
||||
static private String getAmount(PlayableObjectStats objectStats) {
|
||||
private static String getAmount(PlayableObjectStats objectStats) {
|
||||
return String.valueOf(objectStats.getPlayableAmount());
|
||||
}
|
||||
|
||||
static private String getHint(PlayableObjectStats objectStats) {
|
||||
private static String getHint(PlayableObjectStats objectStats) {
|
||||
String res = "Playable abilities: " + objectStats.getPlayableAmount();
|
||||
// abilities list already sorted
|
||||
List<String> list = objectStats.getPlayableAbilities();
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public class AwakenAbility extends SpellAbility {
|
|||
|
||||
private static final Logger logger = Logger.getLogger(AwakenAbility.class);
|
||||
|
||||
static private String filterMessage = "a land you control to awake";
|
||||
private static String filterMessage = "a land you control to awake";
|
||||
|
||||
private String rule;
|
||||
private int awakenValue;
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ public class BestowAbility extends SpellAbility {
|
|||
return "Bestow " + getManaCostsToPay().getText() + " <i>(If you cast this card for its bestow cost, it's an Aura spell with enchant creature. It becomes a creature again if it's not attached to a creature.)</i>";
|
||||
}
|
||||
|
||||
static public void becomeCreature(Permanent permanent, Game game) {
|
||||
public static void becomeCreature(Permanent permanent, Game game) {
|
||||
// permanently changes to the object
|
||||
if (permanent != null) {
|
||||
MageObject basicObject = permanent.getBasicMageObject(game);
|
||||
|
|
@ -126,7 +126,7 @@ public class BestowAbility extends SpellAbility {
|
|||
}
|
||||
}
|
||||
|
||||
static public void becomeAura(Card card) {
|
||||
public static void becomeAura(Card card) {
|
||||
// permanently changes to the object
|
||||
if (card != null) {
|
||||
card.addSubType(SubType.AURA);
|
||||
|
|
|
|||
|
|
@ -41,12 +41,11 @@ public class CompanionAbility extends SpecialAction {
|
|||
return "Companion — " + companionCondition.getRule();
|
||||
}
|
||||
|
||||
final public boolean isLegal(Set<Card> cards, int startingHandSize) {
|
||||
public final boolean isLegal(Set<Card> cards, int startingHandSize) {
|
||||
return companionCondition.isLegal(cards, startingHandSize);
|
||||
}
|
||||
|
||||
final public String getLegalRule() {
|
||||
public final String getLegalRule() {
|
||||
return companionCondition.getRule();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ import mage.constants.WatcherScope;
|
|||
import mage.constants.Zone;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.game.events.GameEvent.EventType;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.players.Player;
|
||||
import mage.target.targetpointer.FixedTarget;
|
||||
|
|
@ -74,7 +73,7 @@ public class ExertAbility extends SimpleStaticAbility {
|
|||
|
||||
class ExertReplacementEffect extends ReplacementEffectImpl {
|
||||
|
||||
final private boolean exertOnlyOncePerTurn;
|
||||
private final boolean exertOnlyOncePerTurn;
|
||||
|
||||
public ExertReplacementEffect(boolean exertOnlyOncePerTurn) {
|
||||
super(Duration.WhileOnBattlefield, Outcome.Detriment);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue