commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From morg...@apache.org
Subject cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections LRUMap.java
Date Wed, 13 Feb 2002 21:03:20 GMT
morgand     02/02/13 13:03:20

  Modified:    collections/src/java/org/apache/commons/collections
                        LRUMap.java
  Log:
  fixed IndexOutOfBoundsException
  
  Revision  Changes    Path
  1.4       +4 -4      jakarta-commons/collections/src/java/org/apache/commons/collections/LRUMap.java
  
  Index: LRUMap.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/LRUMap.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- LRUMap.java	10 Feb 2002 12:56:39 -0000	1.3
  +++ LRUMap.java	13 Feb 2002 21:03:20 -0000	1.4
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/LRUMap.java,v
1.3 2002/02/10 12:56:39 jstrachan Exp $
  - * $Revision: 1.3 $
  - * $Date: 2002/02/10 12:56:39 $
  + * $Header: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/LRUMap.java,v
1.4 2002/02/13 21:03:20 morgand Exp $
  + * $Revision: 1.4 $
  + * $Date: 2002/02/13 21:03:20 $
    *
    * ====================================================================
    *
  @@ -148,7 +148,7 @@
         * @return the key of the removed item
         */
       public Object removeLRU() {
  -        int lastItem = size();
  +        int lastItem = size() - 1;
           Object key = bubbleList.remove( lastItem );
           ValuePositionPair pair = removePair( key );
           return key;
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message