79408342

Date: 2025-02-03 09:40:49
Score: 2
Natty:
Report link

which library do you use to generate the export ? is is jasper or poi ?

in POI, the workbook itself is autoclosable, so the code would look like the following and you would not have to worry about the response.outputstream

try (WritableWorkbook workbook = Workbook.createWorkbook(response.outputstream ) ) {
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): which
  • Low reputation (1):
Posted by: cyanotyp