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

reschke pushed a commit to branch SLING-12701
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-resourceresolver.git


The following commit(s) were added to refs/heads/SLING-12701 by this push:
     new d2eef661 SLING-12701: MapEntries - move alias handling into inner 
class - do not use resolver from parent class
d2eef661 is described below

commit d2eef661f33f36f317802615c39193726c8a7759
Author: Julian Reschke <[email protected]>
AuthorDate: Thu Mar 6 20:48:30 2025 +0100

    SLING-12701: MapEntries - move alias handling into inner class - do not use 
resolver from parent class
---
 .../org/apache/sling/resourceresolver/impl/mapping/MapEntries.java    | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git 
a/src/main/java/org/apache/sling/resourceresolver/impl/mapping/MapEntries.java 
b/src/main/java/org/apache/sling/resourceresolver/impl/mapping/MapEntries.java
index 8938dbb8..54f24d06 100644
--- 
a/src/main/java/org/apache/sling/resourceresolver/impl/mapping/MapEntries.java
+++ 
b/src/main/java/org/apache/sling/resourceresolver/impl/mapping/MapEntries.java
@@ -792,9 +792,7 @@ public class MapEntries implements
 
         this.initializing.lock();
         try {
-            final ResourceResolver resolver = MapEntries.this.resolver;
-            final MapConfigurationProvider factory = this.factory;
-            if (resolver == null || factory == null) {
+            if (this.factory == null) {
                 return this.factory.isOptimizeAliasResolutionEnabled();
             }
 

Reply via email to