jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1331393 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/NodeDelegate.java
Date Fri, 27 Apr 2012 12:38:28 GMT
Author: mduerig
Date: Fri Apr 27 12:38:27 2012
New Revision: 1331393

URL: http://svn.apache.org/viewvc?rev=1331393&view=rev
Log:
OAK-15: Clean up oak-jcr
remove redundant method

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/NodeDelegate.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/NodeDelegate.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/NodeDelegate.java?rev=1331393&r1=1331392&r2=1331393&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/NodeDelegate.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/NodeDelegate.java
Fri Apr 27 12:38:27 2012
@@ -142,14 +142,14 @@ public class NodeDelegate extends ItemDe
     PropertyDelegate setProperty(String oakName, CoreValue value)
             throws RepositoryException {
 
-        getState().setProperty(oakName, value);
+        getTree().setProperty(oakName, value);
         return getPropertyOrNull(oakName);
     }
 
     PropertyDelegate setProperty(String oakName, List<CoreValue> value)
             throws RepositoryException {
 
-        getState().setProperty(oakName, value);
+        getTree().setProperty(oakName, value);
         return getPropertyOrNull(oakName);
     }
 
@@ -159,12 +159,8 @@ public class NodeDelegate extends ItemDe
         return sessionContext.getRoot();
     }
 
-    private Tree getState() {
-        return getTree();
-    }
-
     private synchronized Tree getTree() {
-        return tree = getRoot().getTree(tree.getPath());
+        return tree = sessionContext.getTree(tree.getPath());
     }
 
     private Iterator<NodeDelegate> nodeDelegateIterator(



Mime
View raw message