bmarwell commented on code in PR #2371:
URL: https://github.com/apache/maven-resolver/pull/2371#discussion_r4728625451
##########
maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/filter/PrefixesRemoteRepositoryFilterSource.java:
##########
@@ -343,7 +343,9 @@ public RemoteRepositoryFilter
getRemoteRepositoryFilter(RepositorySystemSession
* @return the layout instance or {@link #NOT_SUPPORTED} if layout not
supported.
*/
private RepositoryLayout cacheLayout(RepositorySystemSession session,
RemoteRepository remoteRepository) {
- return
layouts(session).computeIfAbsent(normalizeRemoteRepository(session,
remoteRepository), r -> {
+ // layout depends on content type as well, that is not part of
repository keys
+ String layoutKey = repositoryCacheKey(session, remoteRepository) + " "
+ remoteRepository.getContentType();
+ return layouts(session).computeIfAbsent(layoutKey, r -> {
Review Comment:
This comment hints at "please extract a method". A method with a meaningful
name and Javadoc would be very helpful here for further maintenance.
--
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]