jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1450855 - in /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/xml: ProtectedNodeImporter.java ProtectedPropertyImporter.java
Date Wed, 27 Feb 2013 17:12:28 GMT
Author: angela
Date: Wed Feb 27 17:12:27 2013
New Revision: 1450855

URL: http://svn.apache.org/r1450855
Log:
OAK-414: add annotations

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/xml/ProtectedNodeImporter.java
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/xml/ProtectedPropertyImporter.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/xml/ProtectedNodeImporter.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/xml/ProtectedNodeImporter.java?rev=1450855&r1=1450854&r2=1450855&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/xml/ProtectedNodeImporter.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/xml/ProtectedNodeImporter.java
Wed Feb 27 17:12:27 2013
@@ -17,6 +17,7 @@
 package org.apache.jackrabbit.oak.spi.xml;
 
 import java.util.List;
+import javax.annotation.Nonnull;
 import javax.jcr.RepositoryException;
 import javax.jcr.nodetype.ConstraintViolationException;
 
@@ -53,7 +54,7 @@ public interface ProtectedNodeImporter e
      * this importer without having reached {@link #end(Tree)}.
      * @throws javax.jcr.RepositoryException If an error occurs.
      */
-    boolean start(Tree protectedParent) throws IllegalStateException,
+    boolean start(@Nonnull Tree protectedParent) throws IllegalStateException,
             RepositoryException;
 
     /**
@@ -70,7 +71,7 @@ public interface ProtectedNodeImporter e
      * that was imported is incomplete.
      * @throws RepositoryException If another error occurs.
      */
-    void end(Tree protectedParent) throws IllegalStateException,
+    void end(@Nonnull Tree protectedParent) throws IllegalStateException,
             ConstraintViolationException, RepositoryException;
 
     /**
@@ -93,7 +94,7 @@ public interface ProtectedNodeImporter e
      * handled by this importer.
      * @throws RepositoryException If another error occurs.
      */
-    void startChildInfo(NodeInfo childInfo, List<PropInfo> propInfos)
+    void startChildInfo(@Nonnull NodeInfo childInfo, @Nonnull List<PropInfo> propInfos)
             throws IllegalStateException, ConstraintViolationException, RepositoryException;
 
     /**

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/xml/ProtectedPropertyImporter.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/xml/ProtectedPropertyImporter.java?rev=1450855&r1=1450854&r2=1450855&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/xml/ProtectedPropertyImporter.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/xml/ProtectedPropertyImporter.java
Wed Feb 27 17:12:27 2013
@@ -16,6 +16,7 @@
  */
 package org.apache.jackrabbit.oak.spi.xml;
 
+import javax.annotation.Nonnull;
 import javax.jcr.RepositoryException;
 import javax.jcr.nodetype.PropertyDefinition;
 
@@ -41,7 +42,7 @@ public interface ProtectedPropertyImport
      * {@code false} otherwise.
      * @throws javax.jcr.RepositoryException If an error occurs.
      */
-    boolean handlePropInfo(Tree parent, PropInfo protectedPropInfo,
-                           PropertyDefinition def) throws RepositoryException;
+    boolean handlePropInfo(@Nonnull Tree parent, @Nonnull PropInfo protectedPropInfo,
+                           @Nonnull PropertyDefinition def) throws RepositoryException;
 
 }
\ No newline at end of file



Mime
View raw message