pepness commented on a change in pull request #2491:
URL: https://github.com/apache/netbeans/pull/2491#discussion_r562264842



##########
File path: 
enterprise/j2ee.clientproject/src/org/netbeans/modules/j2ee/clientproject/api/AppClientProjectGenerator.java
##########
@@ -780,15 +800,15 @@ private static void createManifest(FileObject dir, String 
path) throws IOExcepti
             FileObject manifest = FileUtil.createData(dir, path);
             FileLock lock = manifest.lock();
             try {
-                OutputStream os = manifest.getOutputStream(lock);
-                try {
-                    PrintWriter pw = new PrintWriter(os);
+                PrintWriter pw = null;
+                try (OutputStream os = manifest.getOutputStream(lock)) {

Review comment:
       Fixed, thank you.




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

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

Reply via email to