From 26542659fc5c7b415e2de21221123aa9b1503b4c Mon Sep 17 00:00:00 2001 From: Javier Godoy <11554739+javier-godoy@users.noreply.github.com> Date: Tue, 27 Dec 2022 11:50:21 -0300 Subject: [PATCH] style: declare and assign listEvent value in the same line --- .../vaadin/addons/twincolgrid/TwinColGridListAdapter.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/flowingcode/vaadin/addons/twincolgrid/TwinColGridListAdapter.java b/src/main/java/com/flowingcode/vaadin/addons/twincolgrid/TwinColGridListAdapter.java index 068e60e..fd93c7f 100644 --- a/src/main/java/com/flowingcode/vaadin/addons/twincolgrid/TwinColGridListAdapter.java +++ b/src/main/java/com/flowingcode/vaadin/addons/twincolgrid/TwinColGridListAdapter.java @@ -98,8 +98,8 @@ public Registration addValueChangeListener( delegate.addValueChangeListener( ev -> { List value = new ArrayList<>(ev.getValue()); - ValueChangeEvent> listEvent; - listEvent = new ValueChangeEventImpl(ev.isFromClient(), new ArrayList<>(value)); + ValueChangeEvent> listEvent = + new ValueChangeEventImpl(ev.isFromClient(), new ArrayList<>(value)); listener.valueChanged(listEvent); })); @@ -110,8 +110,8 @@ public Registration addValueChangeListener( .addSortListener( ev -> { List value = getValue(); - ValueChangeEvent> listEvent; - listEvent = new ValueChangeEventImpl(ev.isFromClient(), value); + ValueChangeEvent> listEvent = + new ValueChangeEventImpl(ev.isFromClient(), value); listener.valueChanged(listEvent); }));