mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- CheckStyle.
This commit is contained in:
@@ -212,7 +212,9 @@ public class QuestDataIO {
|
|||||||
NodeList ccs = document.getElementsByTagName("completedChallenges").item(0).getChildNodes();
|
NodeList ccs = document.getElementsByTagName("completedChallenges").item(0).getChildNodes();
|
||||||
for (int iN = 0; iN < ccs.getLength(); iN++) {
|
for (int iN = 0; iN < ccs.getLength(); iN++) {
|
||||||
Node n = ccs.item(iN);
|
Node n = ccs.item(iN);
|
||||||
if ( n.getNodeType() != Node.ELEMENT_NODE ) continue;
|
if (n.getNodeType() != Node.ELEMENT_NODE) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
completedChallenges.add(Integer.parseInt(n.getTextContent()));
|
completedChallenges.add(Integer.parseInt(n.getTextContent()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -253,7 +255,6 @@ public class QuestDataIO {
|
|||||||
return (T) xs.fromXML(xmlData);
|
return (T) xs.fromXML(xmlData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* saveData.
|
* saveData.
|
||||||
@@ -284,7 +285,6 @@ public class QuestDataIO {
|
|||||||
zout.close();
|
zout.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private static void saveUnpacked(String f, XStream xStream, QuestData qd) throws IOException {
|
private static void saveUnpacked(String f, XStream xStream, QuestData qd) throws IOException {
|
||||||
BufferedOutputStream boutUnp = new BufferedOutputStream(new FileOutputStream(f));
|
BufferedOutputStream boutUnp = new BufferedOutputStream(new FileOutputStream(f));
|
||||||
xStream.toXML(qd, boutUnp);
|
xStream.toXML(qd, boutUnp);
|
||||||
|
|||||||
Reference in New Issue
Block a user