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/PanelLights.java

    r29894 r30532  
    1818        public JLabel categoryLabel;
    1919
    20         public JComboBox landCatBox;
     20        public JComboBox<String> landCatBox;
    2121        public EnumMap<Cat, Integer> landCats = new EnumMap<Cat, Integer>(Cat.class);
    2222        private ActionListener alLandCatBox = new ActionListener() {
     
    3131                }
    3232        };
    33         public JComboBox trafficCatBox;
     33        public JComboBox<String> trafficCatBox;
    3434        public EnumMap<Cat, Integer> trafficCats = new EnumMap<Cat, Integer>(Cat.class);
    3535        private ActionListener alTrafficCatBox = new ActionListener() {
     
    4444                }
    4545        };
    46         public JComboBox warningCatBox;
     46        public JComboBox<String> warningCatBox;
    4747        public EnumMap<Cat, Integer> warningCats = new EnumMap<Cat, Integer>(Cat.class);
    4848        private ActionListener alWarningCatBox = new ActionListener() {
     
    5757                }
    5858        };
    59         public JComboBox platformCatBox;
     59        public JComboBox<String> platformCatBox;
    6060        public EnumMap<Cat, Integer> platformCats = new EnumMap<Cat, Integer>(Cat.class);
    6161        private ActionListener alPlatformCatBox = new ActionListener() {
     
    7070                }
    7171        };
    72         public JComboBox pilotCatBox;
     72        public JComboBox<String> pilotCatBox;
    7373        public EnumMap<Cat, Integer> pilotCats = new EnumMap<Cat, Integer>(Cat.class);
    7474        private ActionListener alPilotCatBox = new ActionListener() {
     
    8383                }
    8484        };
    85         public JComboBox rescueCatBox;
     85        public JComboBox<String> rescueCatBox;
    8686        public EnumMap<Cat, Integer> rescueCats = new EnumMap<Cat, Integer>(Cat.class);
    8787        private ActionListener alRescueCatBox = new ActionListener() {
     
    9696                }
    9797        };
    98         public JComboBox radioCatBox;
     98        public JComboBox<String> radioCatBox;
    9999        public EnumMap<Cat, Integer> radioCats = new EnumMap<Cat, Integer>(Cat.class);
    100100        private ActionListener alRadioCatBox = new ActionListener() {
     
    109109                }
    110110        };
    111         public JComboBox radarCatBox;
     111        public JComboBox<String> radarCatBox;
    112112        public EnumMap<Cat, Integer> radarCats = new EnumMap<Cat, Integer>(Cat.class);
    113113        private ActionListener alRadarCatBox = new ActionListener() {
     
    123123        };
    124124        public JLabel functionLabel;
    125         public JComboBox functionBox;
     125        public JComboBox<String> functionBox;
    126126        public EnumMap<Fnc, Integer> functions = new EnumMap<Fnc, Integer>(Fnc.class);
    127127        private ActionListener alfunctionBox = new ActionListener() {
     
    261261                functionLabel.setVisible(false);
    262262
    263                 functionBox = new JComboBox();
     263                functionBox = new JComboBox<>();
    264264                functionBox.setBounds(new Rectangle(5, 110, 160, 18));
    265265                add(functionBox);
     
    281281                categoryLabel.setVisible(false);
    282282
    283                 landCatBox = new JComboBox();
     283                landCatBox = new JComboBox<>();
    284284                landCatBox.setBounds(new Rectangle(5, 142, 160, 18));
    285285                add(landCatBox);
     
    308308                landCatBox.setVisible(false);
    309309
    310                 trafficCatBox = new JComboBox();
     310                trafficCatBox = new JComboBox<>();
    311311                trafficCatBox.setBounds(new Rectangle(5, 140, 160, 20));
    312312                add(trafficCatBox);
     
    325325                trafficCatBox.setVisible(false);
    326326
    327                 warningCatBox = new JComboBox();
     327                warningCatBox = new JComboBox<>();
    328328                warningCatBox.setBounds(new Rectangle(5, 140, 160, 20));
    329329                add(warningCatBox);
     
    347347                warningCatBox.setVisible(false);
    348348
    349                 platformCatBox = new JComboBox();
     349                platformCatBox = new JComboBox<>();
    350350                platformCatBox.setBounds(new Rectangle(5, 140, 160, 20));
    351351                add(platformCatBox);
     
    364364                platformCatBox.setVisible(false);
    365365
    366                 pilotCatBox = new JComboBox();
     366                pilotCatBox = new JComboBox<>();
    367367                pilotCatBox.setBounds(new Rectangle(5, 140, 160, 20));
    368368                add(pilotCatBox);
     
    374374                pilotCatBox.setVisible(false);
    375375
    376                 rescueCatBox = new JComboBox();
     376                rescueCatBox = new JComboBox<>();
    377377                rescueCatBox.setBounds(new Rectangle(5, 140, 160, 20));
    378378                add(rescueCatBox);
     
    391391                rescueCatBox.setVisible(false);
    392392
    393                 radioCatBox = new JComboBox();
     393                radioCatBox = new JComboBox<>();
    394394                radioCatBox.setBounds(new Rectangle(5, 140, 160, 20));
    395395                add(radioCatBox);
     
    429429                radioCatBox.setVisible(false);
    430430
    431                 radarCatBox = new JComboBox();
     431                radarCatBox = new JComboBox<>();
    432432                radarCatBox.setBounds(new Rectangle(5, 140, 160, 20));
    433433                add(radarCatBox);
Note: See TracChangeset for help on using the changeset viewer.