You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by md...@apache.org on 2012/10/04 15:44:20 UTC

svn commit: r1394074 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/TreeImpl.java

Author: mduerig
Date: Thu Oct  4 13:44:20 2012
New Revision: 1394074

URL: http://svn.apache.org/viewvc?rev=1394074&view=rev
Log:
OAK-350: Unify PropertyState and CoreValue
- Deprecate setValue methods PropertyLocation

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=1394074&r1=1394073&r2=1394074&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 Thu Oct  4 13:44:20 2012
@@ -631,6 +631,7 @@ public class TreeImpl implements Tree, P
          * @param value the value to set
          * @return  {@code true} on success false otherwise
          */
+        @Deprecated
         public boolean setValue(CoreValue value) {
             parent.tree.setProperty(property.getName(), value);
             return true;
@@ -641,12 +642,21 @@ public class TreeImpl implements Tree, P
          * @param values the values to set
          * @return  {@code true} on success false otherwise
          */
+        @Deprecated
         public boolean setValues(List<CoreValue> values) {
             parent.tree.setProperty(property.getName(), values);
             return true;
         }
 
         /**
+         * Set the underlying property
+         * @param property The property to set
+         */
+        public <T> void set(PropertyState property) {
+            parent.tree.setProperty(property);
+        }
+
+        /**
          * Remove the underlying property
          * @return  {@code true} on success false otherwise
          */