Update of /var/cvs/src/org/mmbase/cache/implementation
In directory james.mmbase.org:/tmp/cvs-serv10660
Modified Files:
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.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- LRUCache.java 24 Jun 2008 09:54:44 -0000 1.4
+++ LRUCache.java 28 Jul 2008 14:59:53 -0000 1.5
@@ -17,7 +17,7 @@
* restricted maximal size ('Least Recently Used' cache algorithm).
*
* @author Michiel Meeuwissen
- * @version $Id: LRUCache.java,v 1.4 2008/06/24 09:54:44 michiel Exp $
+ * @version $Id: LRUCache.java,v 1.5 2008/07/28 14:59:53 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 < 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