jsedding commented on code in PR #107:
URL:
https://github.com/apache/sling-org-apache-sling-resourceresolver/pull/107#discussion_r1400298427
##########
src/main/java/org/apache/sling/resourceresolver/impl/mapping/ResourceMapperImpl.java:
##########
@@ -291,7 +292,7 @@ private List<String> readAliasesOptimized(String path) {
if ( aliases == null || !aliases.containsValue(name) )
return Collections.emptyList();
- return aliases.entrySet().stream()
+ return new LinkedHashMap<>(aliases).entrySet().stream()
Review Comment:
Doesn't the `LinkedHashMap` constructor iterate over the `aliases` map? If
that's the case nothing is solved.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]