olamy commented on code in PR #1623:
URL: https://github.com/apache/maven-resolver/pull/1623#discussion_r2423371899
##########
maven-resolver-test-util/src/main/java/org/eclipse/aether/internal/test/util/TestFileProcessor.java:
##########
@@ -113,38 +85,11 @@ public void copy(File source, File target) throws
IOException {
public long copy(File source, File target, ProgressListener listener)
throws IOException {
long total = 0;
- InputStream fis = null;
- OutputStream fos = null;
- try {
- fis = new FileInputStream(source);
+ try (InputStream fis = new FileInputStream(source);
Review Comment:
what is the reasoning about not using `Files.newInputStream` and
`Files.newOutputStream`?
--
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]