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
|
|
@ -62,9 +62,8 @@ public class GameFactory {
|
|||
public Match createMatch(String gameType, MatchOptions options) {
|
||||
|
||||
Match match;
|
||||
Constructor<Match> con;
|
||||
try {
|
||||
con = games.get(gameType).getConstructor(MatchOptions.class);
|
||||
Constructor<Match> con = games.get(gameType).getConstructor(MatchOptions.class);
|
||||
match = con.newInstance(options);
|
||||
} catch (Exception ex) {
|
||||
logger.fatal("Error creating match - " + gameType, ex);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue