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


##########
maven-resolver-transport-http/src/main/java/org/eclipse/aether/transport/http/HttpTransporter.java:
##########
@@ -691,8 +690,7 @@ public void handle(CloseableHttpResponse response) throws 
IOException, TransferC
                 if (lastModifiedHeader != null) {
                     Date lastModified = 
DateUtils.parseDate(lastModifiedHeader.getValue());
                     if (lastModified != null) {
-                        Files.setLastModifiedTime(
-                                task.getDataFile().toPath(), 
FileTime.fromMillis(lastModified.getTime()));
+                        
task.getDataFile().setLastModified(lastModified.getTime());

Review Comment:
   I disagree, as this is the _only_ place where `Files` is used, while in 
_many other places_ (see master PR, installer, deployer, etc) 
`File.setLastModifiedTime` is used instead. IMHO this PR just "aligns" this one 
cuckoo egg with the rest. The change from `File` to `Path` (and `Files`) 
happened as part of 2.x work...



-- 
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-unsubscr...@maven.apache.org

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

Reply via email to