jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r1462022 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeState.java
Date Thu, 28 Mar 2013 10:31:54 GMT
Author: mreutegg
Date: Thu Mar 28 10:31:54 2013
New Revision: 1462022

URL: http://svn.apache.org/r1462022
Log:
OAK-726: Implement KernelNodeState.hasChildNode()

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeState.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeState.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeState.java?rev=1462022&r1=1462021&r2=1462022&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeState.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeState.java
Thu Mar 28 10:31:54 2013
@@ -243,6 +243,14 @@ public final class KernelNodeState exten
     }
 
     @Override
+    public boolean hasChildNode(String name) {
+        checkNotNull(name);
+        init();
+        return childNames.contains(name)
+                || childNodeCount > MAX_CHILD_NODE_NAMES && getChildNode(name)
!= null;
+    }
+
+    @Override
     public NodeState getChildNode(String name) {
         checkNotNull(name);
         init();



Mime
View raw message