Skip to content

Commit dba9038

Browse files
committed
SwingChoiceWidget: add missing generic parameter
1 parent c2d6e1f commit dba9038

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/scijava/ui/swing/widget/SwingChoiceWidget.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public class SwingChoiceWidget extends SwingInputWidget<String> implements
5555

5656
public static final double PRIORITY = Priority.NORMAL_PRIORITY;
5757

58-
private JComboBox comboBox;
58+
private JComboBox<String> comboBox;
5959

6060
// -- ActionListener methods --
6161

@@ -79,7 +79,7 @@ public void set(final WidgetModel model) {
7979

8080
final String[] items = model.getChoices();
8181

82-
comboBox = new JComboBox(items);
82+
comboBox = new JComboBox<>(items);
8383
setToolTip(comboBox);
8484
getComponent().add(comboBox);
8585
comboBox.addActionListener(this);

0 commit comments

Comments
 (0)