[jboss-cvs] JBossCache/src/org/jboss/cache ...
Manik Surtani
msurtani at jboss.com
Tue Jan 2 18:42:50 EST 2007
User: msurtani
Date: 07/01/02 18:42:50
Modified: src/org/jboss/cache VersionedNode.java
Log:
Optimised NodeFactory
Revision Changes Path
1.4 +1 -4 JBossCache/src/org/jboss/cache/VersionedNode.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: VersionedNode.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/VersionedNode.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- VersionedNode.java 2 Jan 2007 19:19:05 -0000 1.3
+++ VersionedNode.java 2 Jan 2007 23:42:50 -0000 1.4
@@ -31,10 +31,7 @@
public VersionedNode(Object childName, Fqn fqn, Node parent, Map data, boolean mapSafe, CacheSPI cache)
{
super(childName, fqn, data, mapSafe, cache);
- if (version == null)
- throw new NullPointerException("version");
- if (parent == null && !fqn.isRoot())
- throw new NullPointerException("parent");
+ if (parent == null && !fqn.isRoot()) throw new NullPointerException("parent");
this.parent = parent;
this.version = DefaultDataVersion.ZERO;
}
More information about the jboss-cvs-commits
mailing list