Skip to content

Commit 01fc93f

Browse files
committed
DefaultWidgetModel: use choices, not string labels
See also the previous commit.
1 parent 8794f7a commit 01fc93f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/org/scijava/widget/DefaultWidgetModel.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929

3030
package org.scijava.widget;
3131

32-
import java.util.Arrays;
3332
import java.util.List;
3433
import java.util.Map;
3534
import java.util.Objects;
@@ -279,11 +278,10 @@ public boolean isInitialized() {
279278
/**
280279
* For multiple choice widgets, ensures the value is a valid choice.
281280
*
282-
* @see #getChoices()
283281
* @see ChoiceWidget
284282
*/
285283
private Object ensureValidChoice(final Object value) {
286-
return ensureValid(value, Arrays.asList(getChoices()));
284+
return ensureValid(value, getItem().getChoices());
287285
}
288286

289287
/**

0 commit comments

Comments
 (0)