- 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

@@ -424,7 +424,7 @@ public final class TableModel<T extends InventoryItem> extends AbstractTableMode
@SuppressWarnings("unchecked")
@Override
public int compare(Entry<T, Integer> o1, Entry<T, Integer> o2) {
return sorter.compare((Entry<InventoryItem, Integer>)o1, (Entry<InventoryItem, Integer>)o2);
return sorter.compare((Entry<InventoryItem, Integer>) o1, (Entry<InventoryItem, Integer>) o2);
}
}

View File

@@ -67,7 +67,6 @@ public final class TableView<T extends InventoryItem> {
/** The want unique. */
private boolean wantUnique = false;
private final Class<T> genericType;
// need this to allow users place its contents
@@ -277,7 +276,6 @@ public final class TableView<T extends InventoryItem> {
this.setDeckImpl(pool);
}
/**
*
* setDeckImpl.

View File

@@ -88,8 +88,9 @@ public class PreconDeck implements InventoryItemFromSet {
imageFilename = kv.get("Image");
description = kv.get("Description");
if( AllZone.getEditions().getEditionByCode(kv.get("set").toUpperCase()) != null )
{ setProxy = kv.get("set"); }
if (AllZone.getEditions().getEditionByCode(kv.get("set").toUpperCase()) != null) {
setProxy = kv.get("set");
}
this.set = setProxy;
this.recommendedDeals = new SellRules(sections.get("shop"));

View File

@@ -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)
if (decks == null) {
this.decks = new CardCollections(ForgeProps.getFile(NewConstants.NEW_DECKS));
}
return decks;
}

View File

@@ -200,7 +200,8 @@ public final class QuestData {
this.setName(s0);
QuestPreferences prefs = Singletons.getModel().getQuestPreferences();
ItemPoolView<CardPrinted> lands = QuestUtilCards.generateBasicLands( prefs.getPreferenceInt(QPref.STARTING_BASIC_LANDS), prefs.getPreferenceInt(QPref.STARTING_BASIC_LANDS) );
ItemPoolView<CardPrinted> lands = QuestUtilCards.generateBasicLands(prefs.getPreferenceInt(QPref.STARTING_BASIC_LANDS),
prefs.getPreferenceInt(QPref.STARTING_BASIC_LANDS));
this.getCardPool().addAll(lands);
this.randomizeOpponents();
}
@@ -211,7 +212,6 @@ public final class QuestData {
this.myCards = new QuestUtilCards(this);
// to avoid NPE some pools will be created here if they are null
if (null == this.getNewCardList()) {
this.setNewCardList(new ItemPool<InventoryItem>(InventoryItem.class));

View File

@@ -14,12 +14,11 @@ import forge.util.IFolderMap;
*/
public class QuestDeckMap implements IFolderMap<Deck> {
public QuestDeckMap() {
map = new HashMap<String,Deck>();
map = new HashMap<String, Deck>();
}
public QuestDeckMap(Map<String,Deck> inMap) {
public QuestDeckMap(Map<String, Deck> inMap) {
map = inMap;
}

View File

@@ -102,7 +102,7 @@ public abstract class StorageReaderFolder<T extends IHasName> implements IItemRe
/**
* Read the object from file
* Read the object from file.
* @param file
* @return the object deserialized by inherited class
*/

View File

@@ -519,7 +519,7 @@ public class QuestWinLoseHandler extends ControlWinLose {
*/
private void awardBooster() {
final GameFormat[] emptyFormatArray = {};
final GameFormat[] formats = AllZone.getFormats().getFormats().toArray(emptyFormatArray) ;
final GameFormat[] formats = AllZone.getFormats().getFormats().toArray(emptyFormatArray);
final ListChooser<GameFormat> ch = new ListChooser<GameFormat>("Choose bonus booster format", 1, formats);
String prefferedFormat = Singletons.getModel().getQuestPreferences().getPreference(QPref.BOOSTER_FORMAT);