jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1394074 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/TreeImpl.java
Date Thu, 04 Oct 2012 13:44:20 GMT
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
          */



Mime
View raw message