[jboss-cvs] JBossCache/src-50/org/jboss/cache/pojo/collection ...

Manik Surtani msurtani at jboss.com
Sat Dec 30 21:08:42 EST 2006


  User: msurtani
  Date: 06/12/30 21:08:42

  Modified:    src-50/org/jboss/cache/pojo/collection  CachedMapImpl.java
  Log:
  Updates to tests to go along with changes in node methods
  
  Revision  Changes    Path
  1.16      +4 -4      JBossCache/src-50/org/jboss/cache/pojo/collection/CachedMapImpl.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CachedMapImpl.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src-50/org/jboss/cache/pojo/collection/CachedMapImpl.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -b -r1.15 -r1.16
  --- CachedMapImpl.java	30 Dec 2006 17:49:53 -0000	1.15
  +++ CachedMapImpl.java	31 Dec 2006 02:08:42 -0000	1.16
  @@ -160,7 +160,7 @@
         if (children == null) return false;
         for (Node n : children)
         {
  -         if (n.getFqn().getLast().equals(Null.toNullKeyObject(object))) return true;
  +         if (n.getFqn().getLastElement().equals(Null.toNullKeyObject(object))) return true;
         }
   
         return false;
  @@ -202,7 +202,7 @@
   
                  public Object next()
                  {
  -                  return new Entry(lastKey = ((Node) i.next()).getFqn().getLast());
  +                  return new Entry(lastKey = ((Node) i.next()).getFqn().getLastElement());
                  }
   
                  public void remove()
  @@ -254,7 +254,7 @@
                     try
                     {
                        Fqn f = ((Node) i.next()).getFqn();
  -                     lastKey = f.getLast();
  +                     lastKey = f.getLastElement();
                        return Null.toNullValue(pCache_.getObject(f));
                     }
                     catch (CacheException e)
  @@ -307,7 +307,7 @@
   
                  public Object next()
                  {
  -                  lastKey = ((Node) i.next()).getFqn().getLast();
  +                  lastKey = ((Node) i.next()).getFqn().getLastElement();
                     return Null.toNullKeyValue(lastKey);
   
                  }
  
  
  



More information about the jboss-cvs-commits mailing list