Fixed formatting, removed checkWriteLock() in invalidateNode().

This commit is contained in:
hns 2002-10-14 15:09:45 +00:00
parent cfa6ddc3e0
commit 1fbe23bc03

View file

@ -444,15 +444,14 @@ public final class Node implements INode, Serializable {
// This doesn't make sense for transient nodes
if (state == TRANSIENT || state == NEW)
return;
checkWriteLock (); // ?? necessary ??
Relation rel = getDbMapping ().getSubnodeRelation ();
if (rel != null) {
if (rel.usesPrimaryKey()) {
nmgr.evictKey (new DbKey (getDbMapping().getSubnodeMapping(), key));
} else {
nmgr.evictKey (new SyntheticKey (getKey(), key));
}
}
Relation rel = getDbMapping ().getSubnodeRelation ();
if (rel != null) {
if (rel.usesPrimaryKey()) {
nmgr.evictKey (new DbKey (getDbMapping().getSubnodeMapping(), key));
} else {
nmgr.evictKey (new SyntheticKey (getKey(), key));
}
}
}