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


##########
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:
   This will hide the actual exception. I'd move the exception to trace level



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