forked from External/mage
Narrowed variables scope.
This commit is contained in:
parent
09da478b38
commit
f1ef3bf68b
20 changed files with 42 additions and 60 deletions
|
|
@ -64,9 +64,8 @@ public class TournamentFactory {
|
|||
public Tournament createTournament(String tournamentType, TournamentOptions options) {
|
||||
|
||||
Tournament tournament;
|
||||
Constructor<Tournament> con;
|
||||
try {
|
||||
con = tournaments.get(tournamentType).getConstructor(TournamentOptions.class);
|
||||
Constructor<Tournament> con = tournaments.get(tournamentType).getConstructor(TournamentOptions.class);
|
||||
tournament = con.newInstance(options);
|
||||
// transfer set information, create short info string for included sets
|
||||
tournament.setTournamentType(tournamentTypes.get(tournamentType));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue