SLING-6602 add JSR305 annotations

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1785351 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/sling/api/resource/AbstractResourceVisitor.java b/src/main/java/org/apache/sling/api/resource/AbstractResourceVisitor.java
index 57a231e..f454d67 100644
--- a/src/main/java/org/apache/sling/api/resource/AbstractResourceVisitor.java
+++ b/src/main/java/org/apache/sling/api/resource/AbstractResourceVisitor.java
@@ -20,6 +20,8 @@
 
 import java.util.Iterator;
 
+import javax.annotation.Nonnull;
+
 /**
  * The <code>AbstractResourceVisitor</code> helps in traversing a
  * resource tree by decoupling the actual traversal code
@@ -45,7 +47,7 @@
      * Visit the given resources.
      * @param children The list of resources
      */
-    protected void traverseChildren(final Iterator<Resource> children) {
+    protected void traverseChildren(final @Nonnull Iterator<Resource> children) {
         while (children.hasNext()) {
             final Resource child = children.next();
 
@@ -57,5 +59,5 @@
      * Implement this method to do actual work on the resources.
      * @param res The resource
      */
-    protected abstract void visit(final Resource res);
+    protected abstract void visit(final @Nonnull Resource res);
 }