pepness commented on code in PR #7076:
URL: https://github.com/apache/netbeans/pull/7076#discussion_r1498488352
##########
apisupport/maven.apisupport/src/org/netbeans/modules/maven/apisupport/NBMNativeMWI.java:
##########
@@ -121,20 +117,14 @@ public void run() {
String path = packageName.replace(".", File.separator);
File res = new File(src, path);
res.mkdirs();
- OutputStream bos = null;
- try {
- bos = new BufferedOutputStream(new FileOutputStream(new
File(res, "Bundle.properties")));
+ try (FileOutputStream fos = new FileOutputStream(new File(res,
"Bundle.properties"));
+ OutputStream bos = new BufferedOutputStream(fos)) {
Review Comment:
Done
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists