arturobernalg commented on a change in pull request #9:
URL:
https://github.com/apache/maven-resolver-ant-tasks/pull/9#discussion_r720814724
##########
File path: src/main/java/org/apache/maven/resolver/internal/ant/AntRepoSys.java
##########
@@ -821,17 +821,13 @@ private void populateCollectRequest( CollectRequest
collectRequest, Task task, R
{
continue;
}
- Dependency dependency = new Dependency();
+ final Dependency dependency = new Dependency();
dependency.setCoords( line );
dependencies.add( dependency );
}
}
- finally
- {
- reader.close();
- }
}
- catch ( IOException e )
+ catch ( final IOException e )
Review comment:
HI @arturobernalg
Correct. The main change it's use try-with-resource. Just a improve of the
same code
--
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]