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/smed/src/panels/PanelMore.java

    r29894 r30532  
    4444        };
    4545        public JLabel statusLabel;
    46         public JComboBox statusBox;
     46        public JComboBox<String> statusBox;
    4747        public EnumMap<Sts, Integer> statuses = new EnumMap<Sts, Integer>(Sts.class);
    4848        private ActionListener alStatus = new ActionListener() {
     
    5656        };
    5757        public JLabel constrLabel;
    58         public JComboBox constrBox;
     58        public JComboBox<String> constrBox;
    5959        public EnumMap<Cns, Integer> constructions = new EnumMap<Cns, Integer>(Cns.class);
    6060        private ActionListener alConstr = new ActionListener() {
     
    6868        };
    6969        public JLabel conLabel;
    70         public JComboBox conBox;
     70        public JComboBox<String> conBox;
    7171        public EnumMap<Con, Integer> conspicuities = new EnumMap<Con, Integer>(Con.class);
    7272        private ActionListener alCon = new ActionListener() {
     
    8080        };
    8181        public JLabel reflLabel;
    82         public JComboBox reflBox;
     82        public JComboBox<String> reflBox;
    8383        public EnumMap<Con, Integer> reflectivities = new EnumMap<Con, Integer>(Con.class);
    8484        private ActionListener alRefl = new ActionListener() {
     
    235235                statusLabel.setBounds(new Rectangle(250, 0, 100, 20));
    236236                add(statusLabel);
    237                 statusBox = new JComboBox();
     237                statusBox = new JComboBox<>();
    238238                statusBox.setBounds(new Rectangle(250, 20, 100, 20));
    239239                addStsItem("", Sts.UNKSTS);
     
    262262                constrLabel.setBounds(new Rectangle(250, 40, 100, 20));
    263263                add(constrLabel);
    264                 constrBox = new JComboBox();
     264                constrBox = new JComboBox<>();
    265265                constrBox.setBounds(new Rectangle(250, 60, 100, 20));
    266266                addCnsItem("", Cns.UNKCNS);
     
    280280                conLabel.setBounds(new Rectangle(250, 80, 100, 20));
    281281                add(conLabel);
    282                 conBox = new JComboBox();
     282                conBox = new JComboBox<>();
    283283                conBox.setBounds(new Rectangle(250, 100, 100, 20));
    284284                addConItem("", Con.UNKCON);
     
    291291                reflLabel.setBounds(new Rectangle(250, 120, 100, 20));
    292292                add(reflLabel);
    293                 reflBox = new JComboBox();
     293                reflBox = new JComboBox<>();
    294294                reflBox.setBounds(new Rectangle(250, 140, 100, 20));
    295295                addReflItem("", Con.UNKCON);
     
    361361                return button;
    362362        }
    363 
    364363}
Note: See TracChangeset for help on using the changeset viewer.