michael-o commented on a change in pull request #154:
URL: https://github.com/apache/maven-resolver/pull/154#discussion_r826056881
##########
File path:
maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/Maven2RepositoryLayoutFactory.java
##########
@@ -128,6 +129,18 @@ public RepositoryLayout newInstance(
RepositorySystemSession session, RemoteRepo
.split( "," )
).filter( s -> s != null && !s.trim().isEmpty() ).collect(
Collectors.toSet() );
+ // validation: enforce that all strings in this set are having leading
dot
+ if ( omitChecksumsForExtensions.stream().anyMatch( s -> !s.startsWith(
"." ) ) )
+ {
+ throw new IllegalArgumentException(
+ String.format(
+ "The configuration %s contains illegal values: %s
(all entries must start with '.' (dot)",
Review comment:
Unbalanced parens at 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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]