lewismc commented on a change in pull request #22: SDAP-75
URL:
https://github.com/apache/incubator-sdap-mudrod/pull/22#discussion_r190301186
##########
File path:
core/src/main/java/org/apache/sdap/mudrod/ontology/pre/AggregateTriples.java
##########
@@ -62,30 +62,28 @@ public Object execute() {
e2.printStackTrace();
}
- FileWriter fw;
- try {
- fw = new FileWriter(file.getAbsoluteFile());
+ try(FileWriter fw = new FileWriter(file.getAbsoluteFile())){
bw = new BufferedWriter(fw);
Review comment:
Should this ```BufferedWriter``` not also be pulled into the
```try-with-resources```?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services