jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r988160 - /jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/flat/BTreeManager.java
Date Mon, 23 Aug 2010 15:47:12 GMT
Author: mduerig
Date: Mon Aug 23 15:47:12 2010
New Revision: 988160

URL: http://svn.apache.org/viewvc?rev=988160&view=rev
Log:
JCR-2724: Wrong argument check in BTreeManager constructor 

Modified:
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/flat/BTreeManager.java

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/flat/BTreeManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/flat/BTreeManager.java?rev=988160&r1=988159&r2=988160&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/flat/BTreeManager.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/flat/BTreeManager.java
Mon Aug 23 15:47:12 2010
@@ -124,7 +124,7 @@ public class BTreeManager implements Tre
         if (maxChildren > Integer.MAX_VALUE) {
             throw new IllegalArgumentException("maxChildren must not exceed " + Integer.MAX_VALUE);
         }
-        if (2 * minChildren < maxChildren) {
+        if (2 * minChildren > maxChildren) {
             throw new IllegalArgumentException("maxChildren must be at least twice minChildren");
         }
         if (order == null) {



Mime
View raw message