We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33da585 commit 8590492Copy full SHA for 8590492
1 file changed
src/org/netbeans/modules/php/wordpress/commands/WordPressCli.java
@@ -335,11 +335,8 @@ public List<FrameworkCommand> getCommands(boolean isForce) {
335
File temp = File.createTempFile("nb-wpcli-tmp", ".xml"); // NOI18N
336
try {
337
FileOutputStream outputStream = new FileOutputStream(temp);
338
- PrintWriter pw = new PrintWriter(new OutputStreamWriter(outputStream, "UTF-8")); // NOI18N
339
- try {
+ try (PrintWriter pw = new PrintWriter(new OutputStreamWriter(outputStream, "UTF-8"))) { // NOI18N
340
pw.println(commandList);
341
- } finally {
342
- pw.close();
343
}
344
345
// parse
0 commit comments