akankshajain18 commented on a change in pull request #24: URL: https://github.com/apache/sling-org-apache-sling-resourceresolver/pull/24#discussion_r518799163
########## File path: src/main/java/org/apache/sling/resourceresolver/impl/ResourceResolverFactoryActivator.java ########## @@ -304,6 +312,25 @@ protected void activate(final BundleContext bundleContext, final ResourceResolve this.observationPaths[i] = new Path(paths[i]); } + // optimize alias path allow list + this.aliasPathAllowList = null; Review comment: As per my understanding, Null is set in the activate method before populating "aliasPathAllowList" to avoid any overlap. Since we are loading this variable using the configured paths, it can not be set null at the end ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org