jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1334457 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/NodeDelegate.java
Date Sat, 05 May 2012 17:30:22 GMT
Author: mduerig
Date: Sat May  5 17:30:22 2012
New Revision: 1334457

URL: http://svn.apache.org/viewvc?rev=1334457&view=rev
Log:
OAK-84: Delegates for Session, Node, Property and Item
Simplify setProperty methods

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=1334457&r1=1334456&r2=1334457&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
Sat May  5 17:30:22 2012
@@ -179,8 +179,8 @@ public class NodeDelegate extends ItemDe
      * @return  the set property
      */
     PropertyDelegate setProperty(String name, CoreValue value) {
-        getTree().setProperty(name, value);
-        return getProperty(name);
+        PropertyState propertyState = getTree().setProperty(name, value);
+        return new PropertyDelegate(sessionDelegate, getTree(), propertyState);
     }
 
     /**
@@ -190,8 +190,8 @@ public class NodeDelegate extends ItemDe
      * @return  the set property
      */
     PropertyDelegate setProperty(String name, List<CoreValue> value) {
-        getTree().setProperty(name, value);
-        return getProperty(name);
+        PropertyState propertyState = getTree().setProperty(name, value);
+        return new PropertyDelegate(sessionDelegate, getTree(), propertyState);
     }
 
     /**



Mime
View raw message