Skip to content

Commit

Permalink
[NETBEANS-3505] Fixed compiler warnings concerning rawtypes GrowingLi…
Browse files Browse the repository at this point in the history
…stModel
  • Loading branch information
mklaehn committed Dec 9, 2019
1 parent 0a0f0b7 commit 68994fc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
*/
public class GrowingComboBox extends javax.swing.JPanel {
private static final String SEPARATOR = "---";
final public static class GrowingListModel<T> implements ComboBoxModel {
public static final class GrowingListModel<T> implements ComboBoxModel<Object> {
final private Set<ListDataListener> listeners = new CopyOnWriteArraySet<ListDataListener>();
final private List<T> predefinedList = new ArrayList<T>();
final private List<T> userList = new ArrayList<T>();
Expand Down Expand Up @@ -244,7 +244,7 @@ public Component getListCellRendererComponent(JList list, Object value,
return super.getListCellRendererComponent(list, s, index, isSelected, cellHasFocus);
}
});
combo.setModel(new GrowingListModel());
combo.setModel(new GrowingListModel<Object>());
}

/**
Expand Down

0 comments on commit 68994fc

Please sign in to comment.