Joerg Hoh created SLING-11845:
---------------------------------
Summary: 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: ResourceResolver
Affects Versions: Resource Resolver 1.10.0
Reporter: Joerg Hoh
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)