jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1476127 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MutableNodeState.java
Date Fri, 26 Apr 2013 10:21:36 GMT
Author: mduerig
Date: Fri Apr 26 10:21:35 2013
New Revision: 1476127

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

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MutableNodeState.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MutableNodeState.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MutableNodeState.java?rev=1476127&r1=1476126&r2=1476127&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MutableNodeState.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MutableNodeState.java
Fri Apr 26 10:21:35 2013
@@ -208,14 +208,6 @@ class MutableNodeState extends AbstractN
         }
     }
 
-    boolean isConnected(String name) {
-        assert base != null;
-
-        MutableNodeState node = nodes.get(name);
-        return node != null && node.exists() ||
-                !nodes.containsKey(name) && base.getChildNode(name).exists();
-    }
-
     /**
      * Get and optionally connect a potentially non existing child
      * node of a given {@code name}. Connected child nodes are kept
@@ -253,6 +245,7 @@ class MutableNodeState extends AbstractN
     @Nonnull
     MutableNodeState setChildNode(String name, NodeState state) {
         assert base != null;
+
         MutableNodeState child = nodes.get(name);
         if (child == null) {
             child = new MutableNodeState(state);



Mime
View raw message