Author: reschke Date: Thu Dec 12 14:17:12 2013 New Revision: 1550422 URL: http://svn.apache.org/r1550422 Log: OAK-98 - clarify DocumentStore.findAndUpdate() for the case when the doc wasn't found
Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/DocumentStore.java Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/DocumentStore.java URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/DocumentStore.java?rev=1550422&r1=1550421&r2=1550422&view=diff ============================================================================== --- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/DocumentStore.java (original) +++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/DocumentStore.java Thu Dec 12 14:17:12 2013 @@ -137,7 +137,7 @@ public interface DocumentStore { * @param update the update operation * @return the old document or <code>null</code> if it didn't exist before. * @throws MicroKernelException if the operation failed. - */ + */ @CheckForNull <T extends Document> T createOrUpdate(Collection<T> collection, UpdateOp update) throws MicroKernelException; @@ -151,7 +151,8 @@ public interface DocumentStore { * @param <T> the document type * @param collection the collection * @param update the update operation with the condition - * @return the old document or <code>null</code> if the condition is not met. + * @return the old document or <code>null</code> if the condition is not met or + * if the document wasn't found * @throws MicroKernelException if the operation failed. */ @CheckForNull