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 re...@apache.org on 2012/05/24 14:11:44 UTC

svn commit: r1342216 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/api/Tree.java

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);
 
     /**