forked from External/mage
Big refactoring (server)
I used Intellij IDEA to automatically refactor code to achive 3 goals. 1) get rid of anonymouse classes, and replace the with lamba to get more readeable and clean code (like in TableWaitingDialog). 2) make effectively final variables actually final to avoid inadvertent changes on it in further releases and keep objects as immutable, as possible. 3) Get rid of unused imports (most of the changes) in whole project classes.
This commit is contained in:
parent
076840df53
commit
46d369c8ed
31 changed files with 510 additions and 822 deletions
|
|
@ -40,9 +40,9 @@ import java.util.Map;
|
|||
* @author Lymia
|
||||
*/
|
||||
public abstract class ExtensionPackage {
|
||||
protected List<ExpansionSet> expansions = new ArrayList<>();
|
||||
protected Map<String, Class> deckTypes = new HashMap<>();
|
||||
protected Map<String, Class> draftCubes = new HashMap<>();
|
||||
protected final List<ExpansionSet> expansions = new ArrayList<>();
|
||||
protected final Map<String, Class> deckTypes = new HashMap<>();
|
||||
protected final Map<String, Class> draftCubes = new HashMap<>();
|
||||
|
||||
/**
|
||||
* @return A list of expansions included in this custom set package.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue