Skip to content

Commit

Permalink
style: declare and assign listEvent value in the same line
Browse files Browse the repository at this point in the history
  • Loading branch information
javier-godoy committed Dec 27, 2022
1 parent c3c9cdf commit 627af57
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ public Registration addValueChangeListener(
delegate.addValueChangeListener(
ev -> {
List<T> value = new ArrayList<>(ev.getValue());
ValueChangeEvent<List<T>> listEvent;
listEvent = new ValueChangeEventImpl(ev.isFromClient(), new ArrayList<>(value));
ValueChangeEvent<List<T>> listEvent =
new ValueChangeEventImpl(ev.isFromClient(), new ArrayList<>(value));
listener.valueChanged(listEvent);
}));

Expand All @@ -110,8 +110,8 @@ public Registration addValueChangeListener(
.addSortListener(
ev -> {
List<T> value = getValue();
ValueChangeEvent<List<T>> listEvent;
listEvent = new ValueChangeEventImpl(ev.isFromClient(), value);
ValueChangeEvent<List<T>> listEvent =
new ValueChangeEventImpl(ev.isFromClient(), value);
listener.valueChanged(listEvent);
}));

Expand Down

0 comments on commit 627af57

Please sign in to comment.