Properties can be final in these objects

This commit is contained in:
vraskulin 2017-01-09 17:52:17 +03:00
parent 33b9ec52b0
commit b626bf6866
5 changed files with 12 additions and 13 deletions

View file

@ -42,9 +42,9 @@ import mage.target.Target;
*/
public class TargetAddress {
protected int spellAbilityIndex;
protected UUID mode;
protected int targetIndex;
protected final int spellAbilityIndex;
protected final UUID mode;
protected final int targetIndex;
public TargetAddress(int spellAbilityIndex, UUID mode, int targetIndex) {
this.spellAbilityIndex = spellAbilityIndex;
@ -68,7 +68,7 @@ public class TargetAddress {
protected static class TargetAddressIterator implements Iterator<TargetAddress> {
protected Iterator<SpellAbility> spellAbilityIterator;
protected final Iterator<SpellAbility> spellAbilityIterator;
protected Integer lastSpellAbilityIndex = null;
protected Iterator<UUID> modeIterator = null;
protected Modes modes = null;