mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- CheckStyle.
This commit is contained in:
@@ -296,8 +296,8 @@ public class QuestDataIO {
|
|||||||
writer.addAttribute("s", deck.getName());
|
writer.addAttribute("s", deck.getName());
|
||||||
writer.addAttribute("n", count.toString());
|
writer.addAttribute("n", count.toString());
|
||||||
writer.endNode();
|
writer.endNode();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void marshal(final Object source, final HierarchicalStreamWriter writer, final MarshallingContext context) {
|
public void marshal(final Object source, final HierarchicalStreamWriter writer, final MarshallingContext context) {
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
@@ -332,9 +332,10 @@ public class QuestDataIO {
|
|||||||
} else if ("booster".equals(nodename)) {
|
} else if ("booster".equals(nodename)) {
|
||||||
result.add(this.readBooster(reader), cnt);
|
result.add(this.readBooster(reader), cnt);
|
||||||
} else if ("precon".equals(nodename)) {
|
} else if ("precon".equals(nodename)) {
|
||||||
PreconDeck toAdd = this.readPreconDeck(reader);
|
PreconDeck toAdd = this.readPreconDeck(reader);
|
||||||
if ( null != toAdd )
|
if (null != toAdd) {
|
||||||
result.add(toAdd, cnt);
|
result.add(toAdd, cnt);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
reader.moveUp();
|
reader.moveUp();
|
||||||
}
|
}
|
||||||
@@ -343,13 +344,14 @@ public class QuestDataIO {
|
|||||||
|
|
||||||
private PreconDeck readPreconDeck(final HierarchicalStreamReader reader) {
|
private PreconDeck readPreconDeck(final HierarchicalStreamReader reader) {
|
||||||
final String name = reader.getAttribute("s");
|
final String name = reader.getAttribute("s");
|
||||||
for( PreconDeck d : QuestData.getPreconManager().getDecks() )
|
for (PreconDeck d : QuestData.getPreconManager().getDecks()) {
|
||||||
if ( name.equalsIgnoreCase( d.getName() ) )
|
if (name.equalsIgnoreCase(d.getName())) {
|
||||||
return d;
|
return d;
|
||||||
|
}
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private BoosterPack readBooster(final HierarchicalStreamReader reader) {
|
private BoosterPack readBooster(final HierarchicalStreamReader reader) {
|
||||||
final String set = reader.getAttribute("s");
|
final String set = reader.getAttribute("s");
|
||||||
return new BoosterPack(set);
|
return new BoosterPack(set);
|
||||||
|
|||||||
Reference in New Issue
Block a user