Ignore:
Timestamp:
2014-04-27T17:34:22+02:00 (10 years ago)
Author:
Don-vip
Message:

see #8465 - fix generics for JComboBox/JList

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/shortcut/PrefJPanel.java

    r7005 r7015  
    9797    private JCheckBox cbDefault = new JCheckBox();
    9898    private JCheckBox cbDisable = new JCheckBox();
    99     private JosmComboBox tfKey = new JosmComboBox();
     99    private JosmComboBox<String> tfKey = new JosmComboBox<>();
    100100
    101101    JTable shortcutTable = new JTable();
     
    218218        cbAlt.setText(ALT); // see above for why no tr()
    219219        tfKey.setAction(action);
    220         tfKey.setModel(new DefaultComboBoxModel(keyList.values().toArray()));
     220        tfKey.setModel(new DefaultComboBoxModel<>(keyList.values().toArray(new String[0])));
    221221        cbMeta.setAction(action);
    222222        cbMeta.setText(META); // see above for why no tr()
Note: See TracChangeset for help on using the changeset viewer.