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,15 +47,15 @@ import mage.game.Game;
public class SuspendedCondition implements Condition {
private static SuspendedCondition fInstance = null;
private static SuspendedCondition instance = null;
private SuspendedCondition() {}
public static Condition getInstance() {
if (fInstance == null) {
fInstance = new SuspendedCondition();
if (instance == null) {
instance = new SuspendedCondition();
}
return fInstance;
return instance;
}
@Override