This is an automated email from the ASF dual-hosted git repository.

joerghoh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-api.git


The following commit(s) were added to refs/heads/master by this push:
     new 7f9dc13  SLING-13425 improve javadoc (#93)
7f9dc13 is described below

commit 7f9dc1321bbc4e9462659c51bac00115465f429c
Author: Jörg Hoh <[email protected]>
AuthorDate: Thu Nov 12 15:22:47 2026 +0100

    SLING-13425 improve javadoc (#93)
    
    Co-authored-by: Joerg Hoh <[email protected]>
---
 src/main/java/org/apache/sling/api/resource/ResourceUtil.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/main/java/org/apache/sling/api/resource/ResourceUtil.java 
b/src/main/java/org/apache/sling/api/resource/ResourceUtil.java
index e3355cf..374e2f3 100644
--- a/src/main/java/org/apache/sling/api/resource/ResourceUtil.java
+++ b/src/main/java/org/apache/sling/api/resource/ResourceUtil.java
@@ -474,6 +474,9 @@ public class ResourceUtil {
      * {@link org.apache.sling.api.resource.Resource#getResourceType()} as a
      * relative path.
      *
+     * If the {code type} is absolute (starts with a '/'), the result is also 
an
+     * absolute path.
+     * The result is not normalized and not checked against path restrictions.
      * @param type The resource type to be converted into a path
      * @return The resource type as a path.
      * @since 2.0.6 (Sling API Bundle 2.0.6)

Reply via email to