jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1342181 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/NodeStore.java
Date Thu, 24 May 2012 09:48:23 GMT
Author: mduerig
Date: Thu May 24 09:48:22 2012
New Revision: 1342181

URL: http://svn.apache.org/viewvc?rev=1342181&view=rev
Log:
OAK-37: Use nullability annotation to enforce/document API contract
- add nullability annotations to NodeStore

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/NodeStore.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/NodeStore.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/NodeStore.java?rev=1342181&r1=1342180&r2=1342181&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/NodeStore.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/NodeStore.java
Thu May 24 09:48:22 2012
@@ -18,6 +18,8 @@ package org.apache.jackrabbit.oak.spi.st
 
 import org.apache.jackrabbit.oak.api.CoreValueFactory;
 
+import javax.annotation.Nonnull;
+
 /**
  * Storage abstraction for trees. At any given point in time the stored
  * tree is rooted at a single immutable node state.
@@ -33,6 +35,7 @@ public interface NodeStore {
      *
      * @return root node state
      */
+    @Nonnull
     NodeState getRoot();
 
     /**
@@ -40,6 +43,7 @@ public interface NodeStore {
      *
      * @return branch
      */
+    @Nonnull
     NodeStoreBranch branch();
 
     /**
@@ -50,6 +54,7 @@ public interface NodeStore {
      * @param base  base node state, or {@code null} for building new nodes
      * @return  builder instance
      */
+    @Nonnull
     NodeStateBuilder getBuilder(NodeState base);
 
     /**
@@ -57,6 +62,7 @@ public interface NodeStore {
      *
      * @return value factory
      */
+    @Nonnull
     CoreValueFactory getValueFactory();
 
     /**



Mime
View raw message