You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2022/11/07 13:30:36 UTC

[GitHub] [maven-resolver] cstamas commented on a diff in pull request #215: [MRESOLVER-286] Improve basic connector closed state handling

cstamas commented on code in PR #215:
URL: https://github.com/apache/maven-resolver/pull/215#discussion_r1015423070


##########
maven-resolver-connector-basic/src/main/java/org/eclipse/aether/connector/basic/BasicRepositoryConnector.java:
##########
@@ -297,10 +303,7 @@ public void get( Collection<? extends ArtifactDownload> artifactDownloads,
     public void put( Collection<? extends ArtifactUpload> artifactUploads,
                      Collection<? extends MetadataUpload> metadataUploads )
     {
-        if ( closed )
-        {
-            throw new IllegalStateException( "connector closed" );
-        }
+        failIfClosed();

Review Comment:
   fixed



-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org