[infinispan-commits] Infinispan SVN: r283 - trunk/tree/src/main/java/org/infinispan/tree.

infinispan-commits at lists.jboss.org infinispan-commits at lists.jboss.org
Wed May 13 10:18:31 EDT 2009


Author: manik.surtani at jboss.com
Date: 2009-05-13 10:18:31 -0400 (Wed, 13 May 2009)
New Revision: 283

Modified:
   trunk/tree/src/main/java/org/infinispan/tree/TreeCacheImpl.java
Log:
use new ctx api

Modified: trunk/tree/src/main/java/org/infinispan/tree/TreeCacheImpl.java
===================================================================
--- trunk/tree/src/main/java/org/infinispan/tree/TreeCacheImpl.java	2009-05-13 14:18:00 UTC (rev 282)
+++ trunk/tree/src/main/java/org/infinispan/tree/TreeCacheImpl.java	2009-05-13 14:18:31 UTC (rev 283)
@@ -158,7 +158,7 @@
    }
 
    public Node<K, V> getNode(Fqn fqn, Flag... flags) {
-      icc.getInvocationContext().setFlags(flags);
+      icc.createInvocationContext().setFlags(flags);
       return getNode(fqn);
    }
 
@@ -208,7 +208,8 @@
 
    public void move(Fqn nodeToMoveFqn, Fqn newParentFqn) throws NodeNotExistsException {
       if (trace) log.trace("Moving node '" + nodeToMoveFqn + "' to '" + newParentFqn + "'");
-      if (nodeToMoveFqn == null || newParentFqn == null) throw new NullPointerException("Cannot accept null parameters!");
+      if (nodeToMoveFqn == null || newParentFqn == null)
+         throw new NullPointerException("Cannot accept null parameters!");
 
       if (nodeToMoveFqn.getParent().equals(newParentFqn)) {
          if (trace) log.trace("Not doing anything as this node is equal with its parent");
@@ -227,7 +228,7 @@
          if (!exists(newParentFqn)) {
             // then we need to silently create the new parent
             createNodeInCache(newParentFqn);
-            if (trace) log.trace("The new parent ("+newParentFqn +") did not exists, was created");
+            if (trace) log.trace("The new parent (" + newParentFqn + ") did not exists, was created");
          }
 
          // create an empty node for this new parent




More information about the infinispan-commits mailing list