michael-o commented on a change in pull request #131:
URL: https://github.com/apache/maven-resolver/pull/131#discussion_r755132279
##########
File path:
maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/synccontext/named/NamedLockFactoryAdapter.java
##########
@@ -52,6 +53,13 @@ public NamedLockFactoryAdapter( final NameMapper nameMapper,
final NamedLockFact
{
this.nameMapper = Objects.requireNonNull( nameMapper );
this.namedLockFactory = Objects.requireNonNull( namedLockFactory );
+ if ( this.namedLockFactory instanceof FileSystemFriendly
+ && !( this.nameMapper instanceof FileSystemFriendly ) )
+ {
+ throw new IllegalArgumentException(
Review comment:
IAE or ISE?
--
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]