jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1166066 - /jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java
Date Wed, 07 Sep 2011 08:53:26 GMT
Author: thomasm
Date: Wed Sep  7 08:53:26 2011
New Revision: 1166066

URL: http://svn.apache.org/viewvc?rev=1166066&view=rev
Log:
Bugfix: node count was processed incorrectly

Modified:
    jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java

Modified: jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java?rev=1166066&r1=1166065&r2=1166066&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java
(original)
+++ jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java
Wed Sep  7 08:53:26 2011
@@ -508,7 +508,8 @@ public class MicroKernelImpl implements 
                 if (offset-- > 0) {
                     continue;
                 }
-                if (count < 0 || count-- > 0) {
+                if (count < 0 || count > 0) {
+                    count--;
                     String childName = child.getKey();
                     builder.key(childName).object();
                     if (depth > 0) {



Mime
View raw message