fix typo in javadoc and link to ResourceStream/ResourceFilterStream
diff --git a/pom.xml b/pom.xml
index a73aa75..6579879 100644
--- a/pom.xml
+++ b/pom.xml
@@ -114,8 +114,14 @@
<version>1.0.0</version>
<scope>provided</scope>
</dependency>
+ <dependency>
+ <groupId>org.apache.sling</groupId>
+ <artifactId>org.apache.sling.resource.filter</artifactId>
+ <version>1.0.0</version>
+ <scope>provided</scope> <!-- just used for javadoc link -->
+ </dependency>
</dependencies>
-
+
<build>
<plugins>
<!-- Create the bundle of the Sling API -->
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 e152a5f..1d7ba0e 100644
--- a/src/main/java/org/apache/sling/api/resource/AbstractResourceVisitor.java
+++ b/src/main/java/org/apache/sling/api/resource/AbstractResourceVisitor.java
@@ -23,13 +23,17 @@
import org.jetbrains.annotations.NotNull;
/**
- * This visitor will traverse the given resource and all its children in a breadth-first approach
+ * This visitor will traverse the given resource and all its children in a depth-first approach
* and call the {@link AbstractResourceVisitor#visit(Resource)} method for each visited resource.
* It decouples the actual traversal code from application code.
*
* Concrete subclasses must implement the {@link AbstractResourceVisitor#visit(Resource)} method.
+ * There is no possibility to stop traversal in this visitor. If you want to skip certain
+ * parts of the subtree or stop traversal at a certain point rather use
+ * {@link org.apache.sling.resource.filter.ResourceStream} or
+ * {@link org.apache.sling.resource.filter.ResourceFilterStream}.
*
- * @see <a href="https://en.wikipedia.org/wiki/Breadth-first_search">Breadth-First-Search</a>
+ * @see <a href="https://en.wikipedia.org/wiki/Depth-first_search">Depth-First-Search</a>
* @since 2.2 (Sling API Bundle 2.2.0)
*/
public abstract class AbstractResourceVisitor {