Skip to content

Commit

Permalink
Use nextSet instead of nextUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
LoayGhreeb committed Jul 20, 2024
1 parent 13ca423 commit a3438fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/tobiasdiez/easybind/MappedBackedList.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ protected void sourceChanged(ListChangeListener.Change<? extends F> change) {
}
nextPermutation(from, to, permutation);
} else if (change.wasUpdated()) {
backingList.set(change.getFrom(), mapper.apply(getSource().get(change.getFrom())));
nextUpdate(change.getFrom());
E old = backingList.set(change.getFrom(), mapper.apply(getSource().get(change.getFrom())));
nextSet(change.getFrom(), old);
} else {
if (change.wasRemoved()) {
int removePosition = change.getFrom();
Expand Down

0 comments on commit a3438fc

Please sign in to comment.