Checkstyle and Java warnings cleanup in ReadDraftBoosterPack.java

This commit is contained in:
slapshot5
2011-09-02 06:00:20 +00:00
parent e24da28385
commit d7453206de

View File

@@ -2,7 +2,6 @@ package forge;
import forge.card.CardRules;
import forge.card.CardRules.Predicates;
import forge.card.CardDb;
import forge.card.CardPool;
import forge.card.CardPoolView;
@@ -29,8 +28,8 @@ import net.slightlymagic.maxmtg.Predicate;
*/
public class ReadDraftBoosterPack implements NewConstants {
/** Constant <code>comment="//"</code> */
final private static String comment = "//";
/** Constant <code>comment="//"</code>. */
private static final String comment = "//";
private List<CardPrinted> commonCreatureList = new ArrayList<CardPrinted>();
private List<CardPrinted> commonNonCreatureList = new ArrayList<CardPrinted>();
@@ -53,8 +52,9 @@ public class ReadDraftBoosterPack implements NewConstants {
addBasicLands(list, 20);
addBasicSnowLands(list, 20);
for (int i = 0; i < 4; i++)
for (int i = 0; i < 4; i++) {
list.add(CardDb.instance().getCard("Terramorphic Expanse", "M10"));
}
return list;
} //getBoosterPack5()
@@ -81,7 +81,7 @@ public class ReadDraftBoosterPack implements NewConstants {
*
* @return a {@link forge.CardList} object.
*/
public CardPoolView getBoosterPack() {
public final CardPoolView getBoosterPack() {
CardPool pack = new CardPool();
pack.add(getRandomCard(rareList));
@@ -109,7 +109,7 @@ public class ReadDraftBoosterPack implements NewConstants {
}
//return CardList of 5 or 6 cards, one for each color and maybe an artifact
private List<CardPrinted> getVariety(List<CardPrinted> in) {
private List<CardPrinted> getVariety(final List<CardPrinted> in) {
List<CardPrinted> out = new ArrayList<CardPrinted>();
Collections.shuffle(in, MyRandom.random);
@@ -190,5 +190,3 @@ public class ReadDraftBoosterPack implements NewConstants {
return cardList;
} //readFile()
}