mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-20 02:12:00 +01:00
Use setAll instead of clear + addAll
This commit is contained in:
parent
a9a6ee8dfb
commit
c7736beb96
@ -91,8 +91,7 @@ public class OfferBook {
|
||||
public void fillOfferBookListItems() {
|
||||
log.debug("fillOfferBookListItems");
|
||||
|
||||
offerBookListItems.clear();
|
||||
offerBookListItems.addAll(offerBookService.getOffers().stream()
|
||||
offerBookListItems.setAll(offerBookService.getOffers().stream()
|
||||
.map(OfferBookListItem::new)
|
||||
.collect(Collectors.toList()));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user