From 0c8b653c1edda5194932d5754351fd2fb2417f77 Mon Sep 17 00:00:00 2001 From: hns Date: Thu, 16 Jun 2005 17:51:04 +0000 Subject: [PATCH] Cleaned up constructor a bit, use direct assignment instead of setter for prototype. --- src/helma/objectmodel/db/Node.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/helma/objectmodel/db/Node.java b/src/helma/objectmodel/db/Node.java index 5745903e..ec564942 100644 --- a/src/helma/objectmodel/db/Node.java +++ b/src/helma/objectmodel/db/Node.java @@ -111,16 +111,13 @@ public final class Node implements INode, Serializable { public Node(Node home, String propname, WrappedNodeManager nmgr, String prototype) { this.nmgr = nmgr; setParent(home); - - // this.dbmap = null; // generate a key for the virtual node that can't be mistaken for a Database Key primaryKey = new SyntheticKey(home.getKey(), propname); this.id = primaryKey.getID(); this.name = propname; + this.prototype = prototype; this.anonymous = false; - setPrototype(prototype); - // set the collection's state according to the home node's state if (home.state == NEW || home.state == TRANSIENT) { this.state = TRANSIENT;