]> source.dussan.org Git - vaadin-framework.git/commit
Make CheckBoxGroup.SimpleMultiSelectModel return a selection copy #293.
authorDenis Anisimov <denis@vaadin.com>
Fri, 16 Sep 2016 18:57:40 +0000 (21:57 +0300)
committerVaadin Code Review <review@vaadin.com>
Wed, 21 Sep 2016 09:02:55 +0000 (09:02 +0000)
commit3db7de6eac975f75e76fafc1352f09cf2ac6fa53
treee11b9bd81ea49f6ebc4727a1bb910262cfa29f59
parent53427c897cacc979d8378d46cd8b72fd0cd2fbe6
Make CheckBoxGroup.SimpleMultiSelectModel return a selection copy #293.

getSelectedItems() must return a copy to fulfill the contract specified
in SelectionModel: it must be a snapshot of the current state and safe
to iterate over while changing selection.

Change-Id: Ie2f15eb626dd80df2036bcb2d4e9387fc31389c9
server/src/main/java/com/vaadin/ui/CheckBoxGroup.java
server/src/test/java/com/vaadin/data/BinderMultiSelectTest.java