make sure to close writer

This commit is contained in:
ssogabe committed 2013-07-28 01:28:44 +09:00
1 parent e4ea2fa75c
commit 26f913baaa
1 file changed
+5 -2
+5 -2
View File
@@ -1235,8 +1235,11 @@ public final class FilePath implements Serializable {
}
Writer w = new FileWriter(f);
w.write(contents);
w.close();
try {
w.write(contents);
} finally {
w.close();
}
return f.getAbsolutePath();
}