jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1476101 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/TreeImpl.java
Date Fri, 26 Apr 2013 08:36:58 GMT
Author: jukka
Date: Fri Apr 26 08:36:58 2013
New Revision: 1476101

URL: http://svn.apache.org/r1476101
Log:
OAK-781: Clarify / fix effects of MISSING_NODE as base state of NodeBuilder

No more need to get a NodeState snapshot for the exists() call in canRead(TreeImpl)

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

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/TreeImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/TreeImpl.java?rev=1476101&r1=1476100&r2=1476101&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/TreeImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/TreeImpl.java
Fri Apr 26 08:36:58 2013
@@ -536,7 +536,7 @@ public class TreeImpl implements Tree {
     private boolean canRead(TreeImpl tree) {
         // TODO: OAK-753 TreeImpl exposes hidden child trees
         // return tree.getNodeState().exists() && !NodeStateUtils.isHidden(tree.getName());
-        return tree.getNodeState().exists();
+        return tree.nodeBuilder.exists();
     }
 
     private boolean canRead(PropertyState property) {



Mime
View raw message