From fb5ed7782d5d29bad7e41d77c09f37943ece666f Mon Sep 17 00:00:00 2001 From: Matthias Keck Date: Wed, 4 Dec 2024 08:41:18 +0100 Subject: [PATCH] Renames exception variables for clarity Fixes: SIRI-1036 --- src/main/java/sirius/web/data/ExcelExport.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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); } } }