Ignore:
Timestamp:
2014-07-14T04:18:06+02:00 (11 years ago)
Author:
donvip
Message:

[josm_plugins] fix compilation warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reltoolbox/src/relcontext/RelContextDialog.java

    r30145 r30532  
    137137
    138138        final MouseListener relationMouseAdapter = new ChosenRelationMouseAdapter();
    139         final JComboBox roleBox = new JComboBox();
     139        final JComboBox<String> roleBox = new JComboBox<>();
    140140        roleBoxModel = new RoleComboBoxModel(roleBox);
    141141        roleBox.setModel(roleBoxModel);
     
    620620            setEnabled(newRelation != null);
    621621        }
    622         }
     622    }
    623623       
    624     private class RoleComboBoxModel extends AbstractListModel implements ComboBoxModel {
     624    private class RoleComboBoxModel extends AbstractListModel<String> implements ComboBoxModel<String> {
    625625        private List<String> roles = new ArrayList<String>();
    626626        private int selectedIndex = -1;
    627         private JComboBox combobox;
     627        private JComboBox<String> combobox;
    628628        private String membersRole;
    629629        private final String EMPTY_ROLE = tr("<empty>");
    630630        private final String ANOTHER_ROLE = tr("another...");
    631631
    632         public RoleComboBoxModel( JComboBox combobox ) {
     632        public RoleComboBoxModel( JComboBox<String> combobox ) {
    633633            super();
    634634            this.combobox = combobox;
     
    708708        }
    709709
    710         public Object getElementAt( int index ) {
     710        public String getElementAt( int index ) {
    711711            return getRole(index);
    712712        }
Note: See TracChangeset for help on using the changeset viewer.