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 a3268561 SLING-12701: MapEntries - move alias handling into inner
class - add constants
a3268561 is described below
commit a3268561d3763a7ab15f0336829e4d4438652e0c
Author: Julian Reschke <[email protected]>
AuthorDate: Thu Mar 6 19:29:36 2025 +0100
SLING-12701: MapEntries - move alias handling into inner class - add
constants
---
.../apache/sling/resourceresolver/impl/mapping/MapEntries.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 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 d71fa560..ed9877d5 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
@@ -75,8 +75,6 @@ public class MapEntries implements
private static final String JCR_CONTENT = "jcr:content";
- private static final String JCR_CONTENT_PREFIX = JCR_CONTENT + "/";
-
private static final String JCR_CONTENT_SUFFIX = "/" + JCR_CONTENT;
private static final String PROP_REG_EXP = "sling:match";
@@ -767,6 +765,12 @@ public class MapEntries implements
class AliasHandler {
+ private static final String JCR_CONTENT = "jcr:content";
+
+ private static final String JCR_CONTENT_PREFIX = JCR_CONTENT + "/";
+
+ private static final String JCR_CONTENT_SUFFIX = "/" + JCR_CONTENT;
+
private final MapConfigurationProvider factory;
private final ReentrantLock initializing;