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

Modified Files:
        LRUCache.java 
Log Message:
made a bit more robust


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.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- LRUCache.java       28 Jul 2008 14:59:53 -0000      1.5
+++ LRUCache.java       28 Jul 2008 15:09:52 -0000      1.6
@@ -17,7 +17,7 @@
  * restricted maximal size ('Least Recently Used' cache algorithm).
  *
  * @author  Michiel Meeuwissen
- * @version $Id: LRUCache.java,v 1.5 2008/07/28 14:59:53 michiel Exp $
+ * @version $Id: LRUCache.java,v 1.6 2008/07/28 15:09:52 michiel Exp $
  * @see    org.mmbase.cache.Cache
  * @since MMBase-1.8.6
  */
@@ -50,7 +50,7 @@
      * @param size the new desired size
      */
     public void setMaxSize(int size) {
-        if (size < 0 ) throw new IllegalArgumentException("Cannot set size to 
negative value");
+        if (size < 0 ) throw new IllegalArgumentException("Cannot set size to 
negative value " + size);
         maxSize = size;
         while (size() > maxSize()) {
             try {
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to