You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by re...@apache.org on 2007/01/26 08:18:52 UTC

svn commit: r500160 - /cocoon/trunk/core/cocoon-store/cocoon-store-impl/src/main/java/org/apache/cocoon/components/store/impl/StoreJanitorImpl.java

Author: reinhard
Date: Thu Jan 25 23:18:52 2007
New Revision: 500160

URL: http://svn.apache.org/viewvc?view=rev&rev=500160
Log:
- fix negation logic
- improve exception message

Modified:
    cocoon/trunk/core/cocoon-store/cocoon-store-impl/src/main/java/org/apache/cocoon/components/store/impl/StoreJanitorImpl.java

Modified: cocoon/trunk/core/cocoon-store/cocoon-store-impl/src/main/java/org/apache/cocoon/components/store/impl/StoreJanitorImpl.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-store/cocoon-store-impl/src/main/java/org/apache/cocoon/components/store/impl/StoreJanitorImpl.java?view=diff&rev=500160&r1=500159&r2=500160
==============================================================================
--- cocoon/trunk/core/cocoon-store/cocoon-store-impl/src/main/java/org/apache/cocoon/components/store/impl/StoreJanitorImpl.java (original)
+++ cocoon/trunk/core/cocoon-store/cocoon-store-impl/src/main/java/org/apache/cocoon/components/store/impl/StoreJanitorImpl.java Thu Jan 25 23:18:52 2007
@@ -219,8 +219,9 @@
         if (fraction > 1 && fraction < 0.01) {
             throw new Exception("StoreJanitorImpl percentToFree, has to be between 1 and 100");
         }
-        if (!this.freeingAlgorithm.equals(ALG_ROUND_ROBIN) || !this.freeingAlgorithm.equals(ALG_ALL_STORES)) {
-            throw new Exception("StoreJanitorImpl freeingAlgorithm, has to be round-robin or all-stores.");
+        if (!(this.freeingAlgorithm.equals(ALG_ROUND_ROBIN) || this.freeingAlgorithm.equals(ALG_ALL_STORES))) {
+            throw new Exception("StoreJanitorImpl freeingAlgorithm, has to be 'round-robin' or 'all-stores'. '" 
+                    + this.freeingAlgorithm + "' is not supported.");
         }
 
         this.storelist = new ArrayList();