Commit Graph

4 Commits (3fed8cbf3ed7b461e644e998460fb9b47400a3f4)

Author SHA1 Message Date
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
lodici 85bd25f9f5 move isValidDeckFolder() into DeckUtils. 2017-03-12 19:31:06 +00:00
lodici 69ad7d4d63 clarify call to player decks folder. 2017-03-12 19:25:20 +00:00
lodici b46372f1bc fixes #1088 - exception: cannot determine deck type on random deck file selection. 2017-03-12 10:39:48 +00:00