Update of /var/cvs/src/org/mmbase/cache/implementation
In directory james.mmbase.org:/tmp/cvs-serv10609

Modified Files:
      Tag: MMBase-1_8
        LRUCache.java 
Log Message:
don't whine for nothing


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/cache/implementation


Index: LRUCache.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/cache/implementation/LRUCache.java,v
retrieving revision 1.2.2.2
retrieving revision 1.2.2.3
diff -u -b -r1.2.2.2 -r1.2.2.3
--- LRUCache.java       24 Jun 2008 09:52:22 -0000      1.2.2.2
+++ LRUCache.java       28 Jul 2008 14:59:35 -0000      1.2.2.3
@@ -17,7 +17,7 @@
  * restricted maximal size ('Least Recently Used' cache algorithm).
  *
  * @author  Michiel Meeuwissen
- * @version $Id: LRUCache.java,v 1.2.2.2 2008/06/24 09:52:22 michiel Exp $
+ * @version $Id: LRUCache.java,v 1.2.2.3 2008/07/28 14:59:35 michiel Exp $
  * @see    org.mmbase.cache.Cache
  * @since MMBase-1.8.6
  */
@@ -54,7 +54,7 @@
      * @param size the new desired size
      */
     public void setMaxSize(int size) {
-        if (size < 1 ) throw new IllegalArgumentException("Cannot set size of  
to non-positive value");
+        if (size < 0 ) throw new IllegalArgumentException("Cannot set size to 
negative value");
         maxSize = size;
         while (size() > maxSize()) {
             try {
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to