diff --git a/src/main/java/sirius/web/data/ExcelExport.java b/src/main/java/sirius/web/data/ExcelExport.java index 6cecec26b..88ed24870 100644 --- a/src/main/java/sirius/web/data/ExcelExport.java +++ b/src/main/java/sirius/web/data/ExcelExport.java @@ -125,8 +125,8 @@ public ImageCell(byte[] fileData, int colWidthInPixel, String fileName) { this.colWidthInPixel = colWidthInPixel; try { determineImageSize(fileData); - } catch (IOException e) { - throw Exceptions.handle(e); + } catch (IOException exception) { + throw Exceptions.handle(exception); } } @@ -382,8 +382,8 @@ private void addCell(Row row, Object obj, int columnIndex, CellStyle style) { .collect(Collectors.joining(", "))); return; } - } catch (SQLException e) { - Exceptions.ignore(e); + } catch (SQLException exception) { + Exceptions.ignore(exception); } } cell.setCellValue(createRichTextString(obj.toString())); @@ -559,14 +559,14 @@ public void writeToStream(OutputStream stream) { } workbook.write(out); } - } catch (IOException e) { - throw Exceptions.handle(e); + } catch (IOException exception) { + throw Exceptions.handle(exception); } finally { if (workbook instanceof SXSSFWorkbook sxssfWorkbook) { try { sxssfWorkbook.close(); - } catch (IOException e) { - throw Exceptions.handle(e); + } catch (IOException exception) { + throw Exceptions.handle(exception); } } }