- CheckStyle.

This commit is contained in:
Chris
2012-02-23 03:13:26 +00:00
parent 4819fd11c4
commit ce5616b220
12 changed files with 31 additions and 32 deletions

View File

@@ -75,8 +75,8 @@ public enum FModel {
private final QuestEventManager questEventManager;
private final GameState gameState;
private final FMatchState matchState;
// have to implement lazy initialization - at the moment of FModel.ctor() CardDb is not ready yet.
// have to implement lazy initialization - at the moment of FModel.ctor() CardDb is not ready yet.
private CardCollections decks;
/**
@@ -310,12 +310,13 @@ public enum FModel {
}
/**
* Returns all player's decks for constructed, sealed and whatever
* Returns all player's decks for constructed, sealed and whatever.
* @return {@link forge.decks.CardCollections}
*/
public final CardCollections getDecks() {
if (decks == null)
this.decks = new CardCollections(ForgeProps.getFile(NewConstants.NEW_DECKS));
if (decks == null) {
this.decks = new CardCollections(ForgeProps.getFile(NewConstants.NEW_DECKS));
}
return decks;
}