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 an...@apache.org on 2013/03/12 09:59:02 UTC

svn commit: r1455450 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/commit/EditorHook.java

Author: angela
Date: Tue Mar 12 08:59:02 2013
New Revision: 1455450

URL: http://svn.apache.org/r1455450
Log:
javadoc

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/commit/EditorHook.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/commit/EditorHook.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/commit/EditorHook.java?rev=1455450&r1=1455449&r2=1455450&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/commit/EditorHook.java (original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/commit/EditorHook.java Tue Mar 12 08:59:02 2013
@@ -16,9 +16,6 @@
  */
 package org.apache.jackrabbit.oak.spi.commit;
 
-import static com.google.common.base.Preconditions.checkNotNull;
-import static org.apache.jackrabbit.oak.plugins.memory.MemoryNodeState.EMPTY_NODE;
-
 import javax.annotation.CheckForNull;
 import javax.annotation.Nonnull;
 
@@ -28,6 +25,9 @@ import org.apache.jackrabbit.oak.spi.sta
 import org.apache.jackrabbit.oak.spi.state.NodeState;
 import org.apache.jackrabbit.oak.spi.state.NodeStateDiff;
 
+import static com.google.common.base.Preconditions.checkNotNull;
+import static org.apache.jackrabbit.oak.plugins.memory.MemoryNodeState.EMPTY_NODE;
+
 /**
  * This commit hook implementation processes changes to be committed
  * using the {@link Editor} instance provided by the {@link EditorProvider}
@@ -62,9 +62,9 @@ public class EditorHook implements Commi
     //------------------------------------------------------------< private >---
 
     /**
-     * Validates the given subtree by diffing and recursing through it.
+     * Validates and possibly edits the given subtree by diffing and recursing through it.
      *
-     * @param validator validator for the root of the subtree
+     * @param editor editor for the root of the subtree
      * @param before state of the original subtree
      * @param after state of the modified subtree
      * @return exception if the processing failed, {@code null} otherwise