Commit Graph

9 Commits (2733516cb9cdad7ac4cef98b819d4d01846e5c66)

Author SHA1 Message Date
Leandro Doctors 2733516cb9 Organize imports 2020-01-16 08:21:24 +08:00
Martin Petricek bd5ae5fd7a Refactoring (#1543)
* Fix typos.

* Remove unnecessary boxing/unboxing.

* Replace traditional 'for' loops with 'foreach' loops.

* Replace explicit types with <> (diamonds) where they can be inferred.

* Collapse identical catch branches.

* Replace statement lambda with expression lambda for short statements.

* Remove unnecessary imports.

* Replace some lambdas with Comparator.comparing

* Replace Runnables with lambdas.

* Use addAll instead of adding whole collection manually.

* Simplify boolean expressions.

* Remove redundant 'else'.

* Simplify some boolean conditions that are always true or false.

* Inline redundant local variables.

* Remove extraneous semicolons.

* Fix Javadoc errors.

* Replace anonymous classes with lambdas.

* Replace chain of 'if's with switch.

* Remove delaration of exception that is never thrown.

* Use String/StringBuilder properly.
2018-04-08 08:59:14 +08:00
melvinzhang c8f1262b45 remove trailing space from java code 2015-12-31 18:54:52 +08:00
melvinzhang 5324f287f2 load each custom format as needed (similar to MagicPredefinedFormat) instead of loading all when selecting 'New Duel' 2015-06-23 09:41:43 +08:00
lodici 77e3ab1d42 If possible code to MagicFormat instead of implementation. 2015-06-22 15:27:33 +01:00
lodici 7440d11a64 Only display custom formats in the cube filter in CardFilterPanel. 2015-06-22 15:10:32 +01:00
melvinzhang c8ebbfbb77 replace manually managed standard/modern/legacy cube files with predefined formats 2015-06-20 17:33:31 +08:00
melvinzhang b25b66def2 merge CustomFormats into MagicCustomFormat 2015-06-20 13:30:01 +08:00
melvinzhang 282c1d809d rename MagicCubeDefinition to MagicCustomFormat, rename CubeDefinitions to CustomFormats 2015-06-20 10:26:31 +08:00