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 Feb 6, 2023
1 parent cbd3ed8 commit 2bdf6de
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 2bdf6de

Please sign in to comment.