SLING-5837 - Allow ResourceChangeListeners to define glob patterns for resource matching
* correctly formatted Javadoc
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1752384 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/sling/api/resource/observation/ResourceChangeListener.java b/src/main/java/org/apache/sling/api/resource/observation/ResourceChangeListener.java
index eaae882..61abd2a 100644
--- a/src/main/java/org/apache/sling/api/resource/observation/ResourceChangeListener.java
+++ b/src/main/java/org/apache/sling/api/resource/observation/ResourceChangeListener.java
@@ -54,23 +54,23 @@
/**
* <p>Array of paths or glob patterns - required.</p>
- * <p>A path is either absolute or relative. If it's a relative path, the relative path
- * will be appended to all search paths of the resource resolver.</p>
- * <p>If the whole tree
- * of all search paths should be observed, the special value {@code .} should be used.</p>
- * <p>
- * The following rules are used to interpret glob patterns:
- * <ul>
- * <li>The {@code *} character matches zero or more characters of a name component without crossing directory boundaries.</li>
- * <li>The {@code **} characters matches zero or more characters crossing directory boundaries.</li>
- * <li>The {@code ?} character matches exactly one character of a name component.</li>
- * </ul>
*
- * </p>
- * <p>If one of the paths is a sub resource of another specified path,
- * the sub path is ignored.</p>
- * <p>If this property is missing or invalid, the listener is ignored. The type of the
- * property must either be String, or a String array.</p>
+ * <p>A path is either absolute or relative. If it's a relative path, the relative path will be appended to all search paths of the
+ * resource resolver.</p>
+ *
+ * <p>If the whole tree of all search paths should be observed, the special value {@code .} should be used.</p>
+ *
+ * <p>The following rules are used to interpret glob patterns:</p>
+ * <ul>
+ * <li>The {@code *} character matches zero or more characters of a name component without crossing directory boundaries.</li>
+ * <li>The {@code **} characters matches zero or more characters crossing directory boundaries.</li>
+ * <li>The {@code ?} character matches exactly one character of a name component.</li>
+ * </ul>
+ *
+ * <p>If one of the paths is a sub resource of another specified path, the sub path is ignored.</p>
+ *
+ * <p>If this property is missing or invalid, the listener is ignored. The type of the property must either be String, or a String
+ * array.</p>
*/
String PATHS = "resource.paths";
diff --git a/src/main/java/org/apache/sling/api/resource/path/Path.java b/src/main/java/org/apache/sling/api/resource/path/Path.java
index d118c7b..b68eb84 100644
--- a/src/main/java/org/apache/sling/api/resource/path/Path.java
+++ b/src/main/java/org/apache/sling/api/resource/path/Path.java
@@ -36,14 +36,14 @@
private final boolean isPattern;
/**
- * <p>
- * Create a new path object either from a concrete path or from a glob pattern. The following rules are used to interpret glob patterns:
- * <ul>
- * <li>The {@code *} character matches zero or more characters of a name component without crossing directory boundaries.</li>
- * <li>The {@code **} characters matches zero or more characters crossing directory boundaries.</li>
- * <li>The {@code ?} character matches exactly one character of a name component.</li>
- * </ul>
- * </p>
+ * <p>Create a new path object either from a concrete path or from a glob pattern.</p>
+ *
+ * <p>The following rules are used to interpret glob patterns:</p>
+ * <ul>
+ * <li>The {@code *} character matches zero or more characters of a name component without crossing directory boundaries.</li>
+ * <li>The {@code **} characters matches zero or more characters crossing directory boundaries.</li>
+ * <li>The {@code ?} character matches exactly one character of a name component.</li>
+ * </ul>
*
* @param path the resource path or a glob pattern.
*/