* Minor cleanup: no need to cast and assign nodes to variable.

This commit is contained in:
hns 2006-01-12 13:54:09 +00:00
parent 6919ade74e
commit 379f778e98

View file

@ -94,7 +94,7 @@ public final class XmlDatabase implements IDatabase {
Node node = null; Node node = null;
try { try {
node = (Node) getNode(txn, "0"); getNode(txn, "0");
} catch (ObjectNotFoundException notfound) { } catch (ObjectNotFoundException notfound) {
node = new Node("root", "0", "Root", nmgr.safe); node = new Node("root", "0", "Root", nmgr.safe);
node.setDbMapping(app.getDbMapping("root")); node.setDbMapping(app.getDbMapping("root"));
@ -104,7 +104,7 @@ public final class XmlDatabase implements IDatabase {
} }
try { try {
node = (Node) getNode(txn, "1"); getNode(txn, "1");
} catch (ObjectNotFoundException notfound) { } catch (ObjectNotFoundException notfound) {
node = new Node("users", "1", null, nmgr.safe); node = new Node("users", "1", null, nmgr.safe);
node.setDbMapping(app.getDbMapping("__userroot__")); node.setDbMapping(app.getDbMapping("__userroot__"));