Author: manik.surtani(a)jboss.com
Date: 2007-12-20 12:09:38 -0500 (Thu, 20 Dec 2007)
New Revision: 4897
Modified:
core/branches/1.4.X/src/org/jboss/cache/interceptors/OptimisticNodeInterceptor.java
Log:
Simplified
Modified:
core/branches/1.4.X/src/org/jboss/cache/interceptors/OptimisticNodeInterceptor.java
===================================================================
---
core/branches/1.4.X/src/org/jboss/cache/interceptors/OptimisticNodeInterceptor.java 2007-12-20
14:53:11 UTC (rev 4896)
+++
core/branches/1.4.X/src/org/jboss/cache/interceptors/OptimisticNodeInterceptor.java 2007-12-20
17:09:38 UTC (rev 4897)
@@ -398,10 +398,7 @@
}
// now make sure all parents are in the wsp as well
- if (workspaceNode != null)
- {
- if (!fqn.isRoot()) getOrCreateWorkspaceNode(fqn.getParent(), workspace, false);
- }
+ if (workspaceNode != null && !fqn.isRoot())
getOrCreateWorkspaceNode(fqn.getParent(), workspace, false);
return workspaceNode;
}
Show replies by date