From aeafb70740afd426b9598194d769c131f1a5ba7c Mon Sep 17 00:00:00 2001 From: Javier Godoy <11554739+javier-godoy@users.noreply.github.com> Date: Thu, 9 May 2024 09:28:30 -0300 Subject: [PATCH] fix: use correct classname in logger --- .../vaadin/addons/gridexporter/GridExporter.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/flowingcode/vaadin/addons/gridexporter/GridExporter.java b/src/main/java/com/flowingcode/vaadin/addons/gridexporter/GridExporter.java index c1700ad..67de75d 100644 --- a/src/main/java/com/flowingcode/vaadin/addons/gridexporter/GridExporter.java +++ b/src/main/java/com/flowingcode/vaadin/addons/gridexporter/GridExporter.java @@ -54,7 +54,7 @@ @SuppressWarnings("serial") public class GridExporter implements Serializable { - private static final Logger LOGGER = LoggerFactory.getLogger(ExcelInputStreamFactory.class); + private static final Logger LOGGER = LoggerFactory.getLogger(GridExporter.class); private boolean excelExportEnabled = true; private boolean docxExportEnabled = true; @@ -167,7 +167,7 @@ public static GridExporter createFor( private JustifyContentMode getJustifyContentMode() { JustifyContentMode justifyContentMode; - if (this.buttonsAlignment == ButtonsAlignment.LEFT) { + if (buttonsAlignment == ButtonsAlignment.LEFT) { justifyContentMode = JustifyContentMode.START; } else { justifyContentMode = JustifyContentMode.END; @@ -193,7 +193,7 @@ Object extractValueFromColumn(T item, Column column) { // if there is a key, assume that the property can be retrieved from it if (value == null && column.getKey() != null) { Optional> propertyDefinition = - this.propertySet.getProperty(column.getKey()); + propertySet.getProperty(column.getKey()); if (propertyDefinition.isPresent()) { value = propertyDefinition.get().getGetter().apply(item); } else { @@ -219,7 +219,7 @@ else if (r.getValueProviders().containsKey("name")) { // at this point if the value is still null then take the only value from ColumPathRenderer VP if (value == null && column.getRenderer() instanceof Renderer) { - Renderer renderer = (Renderer) column.getRenderer(); + Renderer renderer = column.getRenderer(); if (renderer instanceof ColumnPathRenderer) { try { Field provider = ColumnPathRenderer.class.getDeclaredField("provider"); @@ -458,7 +458,7 @@ public void setNumberColumnFormat( * value of the column so it can be converted to a Double, and then allows to specify the excel * format to be applied to the cell when exported to excel with a provider, so the resulting cell * is not a string but a number that can be used in formulas. - * + * * @param column * @param decimalFormat * @param excelFormatProvider @@ -594,7 +594,7 @@ public void setFooterToolbarItems(List footerToolbarItems) { /** * Charset to use when exporting the CSV file. - * + * * @return CSV file charset or default one. */ public Charset getCsvCharset() { @@ -602,7 +602,7 @@ public Charset getCsvCharset() { } public void setCsvCharset(SerializableSupplier charset) { - this.csvCharset = charset; + csvCharset = charset; } }