We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8794f7a commit 01fc93fCopy full SHA for 01fc93f
1 file changed
src/main/java/org/scijava/widget/DefaultWidgetModel.java
@@ -29,7 +29,6 @@
29
30
package org.scijava.widget;
31
32
-import java.util.Arrays;
33
import java.util.List;
34
import java.util.Map;
35
import java.util.Objects;
@@ -279,11 +278,10 @@ public boolean isInitialized() {
279
278
/**
280
* For multiple choice widgets, ensures the value is a valid choice.
281
*
282
- * @see #getChoices()
283
* @see ChoiceWidget
284
*/
285
private Object ensureValidChoice(final Object value) {
286
- return ensureValid(value, Arrays.asList(getChoices()));
+ return ensureValid(value, getItem().getChoices());
287
}
288
289
0 commit comments