- CheckStyle.

This commit is contained in:
Chris
2012-03-24 14:50:10 +00:00
parent 2630c9f1ba
commit cc729bcf7c
2 changed files with 8 additions and 10 deletions

View File

@@ -210,7 +210,7 @@ public class Deck extends DeckBase implements Serializable {
final Iterator<String> lineIterator = lines.iterator();
while (lineIterator.hasNext()) {
final String line = lineIterator.next();
if (line.startsWith(";")) { continue; } // that is a comment or not-yet-supported card
if (line.startsWith(";")) { continue; } // that is a comment or not-yet-supported card
if (line.startsWith("[")) { break; } // there comes another section
final Matcher m = p.matcher(line.trim());

View File

@@ -74,7 +74,7 @@ public class QuestController {
private QuestEventManager challengesManager = null;
private QuestBazaarManager bazaar = null;
private QuestPetStorage pets = null;
// This is used by shop. Had no idea where else to place this
@@ -100,12 +100,11 @@ public class QuestController {
public void selectPet(Integer slot, String name) {
selectedPets.put(slot, name);
}
public String getSelectedPet(Integer slot) {
return selectedPets.get(slot);
}
}
// Cards - class uses data from here
/**
* Gets the cards.
@@ -332,13 +331,12 @@ public class QuestController {
}
return this.challengesManager;
}
public QuestPetStorage getPetsStorage() {
if ( this.pets == null ) {
if (this.pets == null) {
this.pets = new QuestPetStorage(ForgeProps.getFile(NewConstants.Quest.BAZAAR));
}
return this.pets;
}