[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)
[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: -- Component/s: API (was: ResourceResolver) > 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: Resource Resolver 1.10.0 >Reporter: Joerg Hoh >Priority: Major > > 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)
[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: -- Affects Version/s: API 2.27.2 (was: Resource Resolver 1.10.0) > 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 >Priority: Major > > 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)