[jboss-cvs] JBossCache/src/org/jboss/cache ...

Manik Surtani msurtani at belmont.prod.atl2.jboss.com
Thu Aug 31 06:22:05 EDT 2006


  User: msurtani
  Date: 06/08/31 06:22:05

  Modified:    src/org/jboss/cache  TreeCacheProxyImpl.java
  Log:
  Fixed getRoot()
  
  Revision  Changes    Path
  1.22      +5 -3      JBossCache/src/org/jboss/cache/TreeCacheProxyImpl.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: TreeCacheProxyImpl.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/TreeCacheProxyImpl.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -b -r1.21 -r1.22
  --- TreeCacheProxyImpl.java	30 Aug 2006 20:28:50 -0000	1.21
  +++ TreeCacheProxyImpl.java	31 Aug 2006 10:22:05 -0000	1.22
  @@ -156,8 +156,7 @@
   
      public Node getRoot()
      {
  -      NodeImpl root = treeCache.get(Fqn.ROOT);
  -      return new TreeCacheProxyImpl(treeCache, root);
  +      return treeCache.getCacheSPI();
      }
   
      public void addCacheListener(CacheListener l)
  @@ -426,7 +425,10 @@
            currentNode.clear();
            treeCache.getInvocationContext().getOptionOverrides().setBypassInterceptorChain(false);
         }
  -      else treeCache.removeData(currentNode.getFqn());
  +      else
  +      {
  +         treeCache.removeData(currentNode.getFqn());
  +      }
      }
   
      public void move(Node newParent)
  
  
  



More information about the jboss-cvs-commits mailing list