jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r1342216 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/api/Tree.java
Date Thu, 24 May 2012 12:11:44 GMT
Author: reschke
Date: Thu May 24 12:11:43 2012
New Revision: 1342216

URL: http://svn.apache.org/viewvc?rev=1342216&view=rev
Log:
OAK-37: Use nullability annotation to enforce/document API contract (WIP)

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=1342216&r1=1342215&r2=1342216&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 Thu
May 24 12:11:43 2012
@@ -20,6 +20,8 @@ package org.apache.jackrabbit.oak.api;
 
 import java.util.List;
 
+import javax.annotation.CheckForNull;
+
 /**
  * A tree instance represents a snapshot of the {@code ContentRepository}
  * tree at the time the instance was acquired. Tree instances may
@@ -89,6 +91,7 @@ public interface Tree {
      * @return  the property state with the given {@code name} or {@code null}
      *          if no such property state exists.
      */
+    @CheckForNull
     PropertyState getProperty(String name);
 
     /**



Mime
View raw message