Skip to content

Commit 412faba

Browse files
author
Rajeev Kumar Singh
committed
Close the workbook
1 parent a5fe126 commit 412faba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/ExcelWriter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ Hyperlink, RichTextString etc in a format (HSSF, XSSF) independent way */
9999
FileOutputStream fileOut = new FileOutputStream("poi-generated-file.xlsx");
100100
workbook.write(fileOut);
101101
fileOut.close();
102+
103+
workbook.close();
102104
}
103105

104106

0 commit comments

Comments
 (0)