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/01 20:13:19 UTC

[GitHub] [maven-resolver] michael-o commented on a diff in pull request #212: Drop PartialFile use

michael-o commented on code in PR #212:
URL: https://github.com/apache/maven-resolver/pull/212#discussion_r1010856434


##########
maven-resolver-connector-basic/src/main/java/org/eclipse/aether/connector/basic/BasicRepositoryConnector.java:
##########
@@ -478,21 +454,16 @@ protected void runTask()
         {
             fileProcessor.mkdirs( file.getParentFile() );
 
-            PartialFile partFile = partialFileFactory.newInstance( file, this );
-            if ( partFile == null )
-            {
-                LOGGER.debug( "Concurrent download of {} just finished, skipping download", file );
-                return;
-            }
+            File tempFile =
+                    File.createTempFile( file.getName() + '-' + UUID.randomUUID().toString().replace( "-", "" ), ".tmp",

Review Comment:
   why this pain `.toString().replace( "-", "" )`? Use as-is.



-- 
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