Skip to content

Commit 2570986

Browse files
javier-godoypaodb
authored andcommitted
fix: use correct classname in logger
1 parent 0e10923 commit 2570986

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/main/java/com/flowingcode/vaadin/addons/gridexporter/GridExporter.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
@SuppressWarnings("serial")
5555
public class GridExporter<T> implements Serializable {
5656

57-
private static final Logger LOGGER = LoggerFactory.getLogger(ExcelInputStreamFactory.class);
57+
private static final Logger LOGGER = LoggerFactory.getLogger(GridExporter.class);
5858

5959
private boolean excelExportEnabled = true;
6060
private boolean docxExportEnabled = true;
@@ -167,7 +167,7 @@ public static <T> GridExporter<T> createFor(
167167

168168
private JustifyContentMode getJustifyContentMode() {
169169
JustifyContentMode justifyContentMode;
170-
if (this.buttonsAlignment == ButtonsAlignment.LEFT) {
170+
if (buttonsAlignment == ButtonsAlignment.LEFT) {
171171
justifyContentMode = JustifyContentMode.START;
172172
} else {
173173
justifyContentMode = JustifyContentMode.END;
@@ -193,7 +193,7 @@ Object extractValueFromColumn(T item, Column<T> column) {
193193
// if there is a key, assume that the property can be retrieved from it
194194
if (value == null && column.getKey() != null) {
195195
Optional<PropertyDefinition<T, ?>> propertyDefinition =
196-
this.propertySet.getProperty(column.getKey());
196+
propertySet.getProperty(column.getKey());
197197
if (propertyDefinition.isPresent()) {
198198
value = propertyDefinition.get().getGetter().apply(item);
199199
} else {
@@ -219,7 +219,7 @@ else if (r.getValueProviders().containsKey("name")) {
219219

220220
// at this point if the value is still null then take the only value from ColumPathRenderer VP
221221
if (value == null && column.getRenderer() instanceof Renderer) {
222-
Renderer<T> renderer = (Renderer<T>) column.getRenderer();
222+
Renderer<T> renderer = column.getRenderer();
223223
if (renderer instanceof ColumnPathRenderer) {
224224
try {
225225
Field provider = ColumnPathRenderer.class.getDeclaredField("provider");
@@ -458,7 +458,7 @@ public void setNumberColumnFormat(
458458
* value of the column so it can be converted to a Double, and then allows to specify the excel
459459
* format to be applied to the cell when exported to excel with a provider, so the resulting cell
460460
* is not a string but a number that can be used in formulas.
461-
*
461+
*
462462
* @param column
463463
* @param decimalFormat
464464
* @param excelFormatProvider
@@ -594,15 +594,15 @@ public void setFooterToolbarItems(List<FooterToolbarItem> footerToolbarItems) {
594594

595595
/**
596596
* Charset to use when exporting the CSV file.
597-
*
597+
*
598598
* @return CSV file charset or default one.
599599
*/
600600
public Charset getCsvCharset() {
601601
return csvCharset == null ? Charset.defaultCharset() : csvCharset.get();
602602
}
603603

604604
public void setCsvCharset(SerializableSupplier<Charset> charset) {
605-
this.csvCharset = charset;
605+
csvCharset = charset;
606606
}
607607

608608
}

0 commit comments

Comments
 (0)