You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Joerg Hoh (Jira)" <ji...@apache.org> on 2023/07/21 12:30:00 UTC

[jira] [Updated] (SLING-11845) ResourceResolver.getSearchPaths() javadoc does not match implementation

     [ https://issues.apache.org/jira/browse/SLING-11845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joerg Hoh updated SLING-11845:
------------------------------
    Fix Version/s: API 2.27.4

> ResourceResolver.getSearchPaths() javadoc does not match implementation
> -----------------------------------------------------------------------
>
>                 Key: SLING-11845
>                 URL: https://issues.apache.org/jira/browse/SLING-11845
>             Project: Sling
>          Issue Type: Improvement
>          Components: API
>    Affects Versions: API 2.27.2
>            Reporter: Joerg Hoh
>            Assignee: Joerg Hoh
>            Priority: Major
>             Fix For: API 2.27.4
>
>
> The [javadoc for ResourceResolver.getSearchPaths()|https://sling.apache.org/apidocs/sling12/org/apache/sling/api/resource/ResourceResolver.html#getSearchPath--] states:
> {quote}If no search path is set an empty array is returned.
> {quote}
> But the current implementation returns an array with a single value "/" in it if no search path is specified ([Link|https://github.com/apache/sling-org-apache-sling-resourceresolver/blob/46f67c7cff13071d96cf58dde86730b6ffbb2639/src/main/java/org/apache/sling/resourceresolver/impl/ResourceResolverFactoryActivator.java#L307]).
> I recommend to adjust the javadoc to match the implementation.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)