- CheckStyle.

This commit is contained in:
Chris
2012-03-11 16:50:30 +00:00
parent 98d85758d5
commit 42ea2a24ac
3 changed files with 28 additions and 28 deletions

View File

@@ -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);