* Minor cleanup: no need to cast and assign nodes to variable.
This commit is contained in:
parent
6919ade74e
commit
379f778e98
1 changed files with 2 additions and 2 deletions
|
@ -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__"));
|
||||||
|
|
Loading…
Add table
Reference in a new issue