forked from External/mage
rewrote singleton to enum where applicable
This commit is contained in:
parent
3b62489ef5
commit
234cfe9519
872 changed files with 1796 additions and 2135 deletions
|
|
@ -59,14 +59,14 @@ import java.io.ObjectStreamException;
|
|||
*/
|
||||
public class InfectAbility extends StaticAbility implements MageSingleton {
|
||||
|
||||
private static final InfectAbility fINSTANCE = new InfectAbility();
|
||||
private static final InfectAbility instance = new InfectAbility();
|
||||
|
||||
private Object readResolve() throws ObjectStreamException {
|
||||
return fINSTANCE;
|
||||
return instance;
|
||||
}
|
||||
|
||||
public static InfectAbility getInstance() {
|
||||
return fINSTANCE;
|
||||
return instance;
|
||||
}
|
||||
|
||||
private InfectAbility() {
|
||||
|
|
@ -80,7 +80,7 @@ public class InfectAbility extends StaticAbility implements MageSingleton {
|
|||
|
||||
@Override
|
||||
public InfectAbility copy() {
|
||||
return fINSTANCE;
|
||||
return instance;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue