jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1405231 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/TreeImpl.java
Date Sat, 03 Nov 2012 00:09:02 GMT
Author: mduerig
Date: Sat Nov  3 00:09:02 2012
New Revision: 1405231

URL: http://svn.apache.org/viewvc?rev=1405231&view=rev
Log:
OAK-417: Refactor/reimplement TreeImpl.getStatus and TreeImpl.getPropertyStatus to take advantage
of the underlying NodeBuilder

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=1405231&r1=1405230&r2=1405231&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
Sat Nov  3 00:09:02 2012
@@ -494,10 +494,7 @@ public class TreeImpl implements Tree {
             return true;
         }
         try {
-            if (nodeBuilder != null) {
-                nodeBuilder.getNodeState();
-            }
-            return false;
+            return getNodeBuilder().getNodeState() == null;
         }
         catch (IllegalStateException e) {
             return true;



Mime
View raw message