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

Ben Wang bwang at jboss.com
Tue Oct 10 04:08:23 EDT 2006


  User: bwang   
  Date: 06/10/10 04:08:23

  Modified:    src-50/org/jboss/cache/pojo/collection  CachedListImpl.java
  Log:
  JBCACHE-795 ListIterator exception
  
  Revision  Changes    Path
  1.10      +2 -2      JBossCache/src-50/org/jboss/cache/pojo/collection/CachedListImpl.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CachedListImpl.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src-50/org/jboss/cache/pojo/collection/CachedListImpl.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -b -r1.9 -r1.10
  --- CachedListImpl.java	5 Sep 2006 06:11:25 -0000	1.9
  +++ CachedListImpl.java	10 Oct 2006 08:08:23 -0000	1.10
  @@ -296,7 +296,7 @@
         public MyListIterator(List list, int index)
         {
            list_ = list;
  -         if (index < 0 || index >= list_.size())
  +         if (index < 0 || index > list_.size())
            {
               throw new IndexOutOfBoundsException("CachedListImpl: MyListIterator construction. " +
                       " Index is out of bound : " + index);
  @@ -338,7 +338,7 @@
   
         public boolean hasNext()
         {
  -         return (index != list_.size() - 1);
  +         return (index < list_.size());
         }
   
         public boolean hasPrevious()
  
  
  



More information about the jboss-cvs-commits mailing list