jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1418388 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/api/Tree.java
Date Fri, 07 Dec 2012 16:51:18 GMT
Author: mduerig
Date: Fri Dec  7 16:51:17 2012
New Revision: 1418388

URL: http://svn.apache.org/viewvc?rev=1418388&view=rev
Log:
OAK-266: Clarify Tree interface

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/api/Tree.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/api/Tree.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/api/Tree.java?rev=1418388&r1=1418387&r2=1418388&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/api/Tree.java (original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/api/Tree.java Fri
Dec  7 16:51:17 2012
@@ -246,7 +246,7 @@ public interface Tree {
      * Set a property state
      * @param property  The property state to set
      */
-    void setProperty(PropertyState property);
+    void setProperty(@Nonnull PropertyState property);
 
     /**
      * Set a property state
@@ -255,7 +255,7 @@ public interface Tree {
      * @param <T>  The type of this property. Must be one of {@code String, Blob, byte[],
Long, Integer, Double, Boolean, BigDecimal}
      * @throws IllegalArgumentException if {@code T} is not one of the above types.
      */
-    <T> void setProperty(String name, T value);
+    <T> void setProperty(String name, @Nonnull T value);
 
     /**
      * Set a property state
@@ -264,7 +264,7 @@ public interface Tree {
      * @param type The type of this property.
      * @param <T>  The type of this property.
      */
-    <T> void setProperty(String name, T value, Type<T> type);
+    <T> void setProperty(String name, @Nonnull T value, Type<T> type);
 
     /**
      * Remove the property with the given name. This method has no effect if a



Mime
View raw message