Use setAll instead of clear + addAll

This commit is contained in:
Manfred Karrer 2016-09-03 22:47:59 -05:00
parent a9a6ee8dfb
commit c7736beb96

View File

@ -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()));