rewrote singleton to enum where applicable

This commit is contained in:
ingmargoudt 2017-03-14 16:31:57 +01:00
parent 3b62489ef5
commit 234cfe9519
872 changed files with 1796 additions and 2135 deletions

View file

@ -47,14 +47,14 @@ import mage.players.Player;
*/
public class ParleyCount implements DynamicValue, MageSingleton {
private static final ParleyCount fINSTANCE = new ParleyCount();
private static final ParleyCount instance = new ParleyCount();
private Object readResolve() throws ObjectStreamException {
return fINSTANCE;
return instance;
}
public static ParleyCount getInstance() {
return fINSTANCE;
return instance;
}
@Override
@ -82,7 +82,7 @@ public class ParleyCount implements DynamicValue, MageSingleton {
@Override
public ParleyCount copy() {
return fINSTANCE;
return instance;
}
@Override