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

Elias Ross genman at noderunner.net
Sun Nov 19 22:53:55 EST 2006


  User: genman  
  Date: 06/11/19 22:53:55

  Modified:    src/org/jboss/cache/loader  AbstractCacheLoader.java
  Log:
  JBCACHE-867, Move methods from the ProxyImpl to Node, refactor Node classes as well
  
  Revision  Changes    Path
  1.11      +6 -6      JBossCache/src/org/jboss/cache/loader/AbstractCacheLoader.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: AbstractCacheLoader.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/loader/AbstractCacheLoader.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -b -r1.10 -r1.11
  --- AbstractCacheLoader.java	14 Nov 2006 14:17:10 -0000	1.10
  +++ AbstractCacheLoader.java	20 Nov 2006 03:53:55 -0000	1.11
  @@ -221,21 +221,21 @@
         }
      }
   
  -   private void _move(Fqn parent, Fqn node) throws Exception
  +   private void _move(Fqn parent, Fqn fqn) throws Exception
      {
  -      Object name = node.getName();
  +      Object name = fqn.getLast();
         Fqn newFqn = new Fqn(parent, name);
   
         // start deep.
  -      for (Object c : getChildrenNames(node))
  +      for (Object c : getChildrenNames(fqn))
         {
  -         _move(newFqn, new Fqn(node, c));
  +         _move(newFqn, new Fqn(fqn, c));
         }
         // get data for node.
  -      Map data = get(node);
  +      Map data = get(fqn);
         if (data != null) // if null, then the node never existed.  Don't bother removing?
         {
  -         remove(node);
  +         remove(fqn);
            put(newFqn, data);
         }
      }
  
  
  



More information about the jboss-cvs-commits mailing list