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

[josm_plugins] fix compilation warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed/src/panels/PanelSpec.java

    r30294 r30532  
    1717        private SmedAction dlg;
    1818        public JLabel categoryLabel;
    19         public JComboBox categoryBox;
     19        public JComboBox<String> categoryBox;
    2020        public EnumMap<Cat, Integer> categories = new EnumMap<Cat, Integer>(Cat.class);
    2121        private ActionListener alCategoryBox = new ActionListener() {
     
    2828                }
    2929        };
    30         public JComboBox mooringBox;
     30        public JComboBox<String> mooringBox;
    3131        public EnumMap<Cat, Integer> moorings = new EnumMap<Cat, Integer>(Cat.class);
    3232        private ActionListener alMooringBox = new ActionListener() {
     
    173173                categoryLabel.setBounds(new Rectangle(5, 125, 160, 18));
    174174                add(categoryLabel);
    175                 categoryBox = new JComboBox();
     175                categoryBox = new JComboBox<>();
    176176                categoryBox.setBounds(new Rectangle(5, 142, 160, 18));
    177177                add(categoryBox);
     
    196196                addCatItem(Messages.getString("FerryCross"), Cat.SPM_FRRY);
    197197                addCatItem(Messages.getString("Anchorage"), Cat.SPM_ANCH);
    198                 mooringBox = new JComboBox();
     198                mooringBox = new JComboBox<>();
    199199                mooringBox.setBounds(new Rectangle(5, 142, 160, 18));
    200200                add(mooringBox);
Note: See TracChangeset for help on using the changeset viewer.