Ignore:
Timestamp:
2014-10-18T23:07:52+02:00 (11 years ago)
Author:
donvip
Message:

[josm_plugins] fix Java 7 / unused code warnings

File:
1 edited

Legend:

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

    r30532 r30737  
    1919
    2020        public JComboBox<String> landCatBox;
    21         public EnumMap<Cat, Integer> landCats = new EnumMap<Cat, Integer>(Cat.class);
     21        public EnumMap<Cat, Integer> landCats = new EnumMap<>(Cat.class);
    2222        private ActionListener alLandCatBox = new ActionListener() {
    2323                public void actionPerformed(java.awt.event.ActionEvent e) {
     
    3232        };
    3333        public JComboBox<String> trafficCatBox;
    34         public EnumMap<Cat, Integer> trafficCats = new EnumMap<Cat, Integer>(Cat.class);
     34        public EnumMap<Cat, Integer> trafficCats = new EnumMap<>(Cat.class);
    3535        private ActionListener alTrafficCatBox = new ActionListener() {
    3636                public void actionPerformed(java.awt.event.ActionEvent e) {
     
    4545        };
    4646        public JComboBox<String> warningCatBox;
    47         public EnumMap<Cat, Integer> warningCats = new EnumMap<Cat, Integer>(Cat.class);
     47        public EnumMap<Cat, Integer> warningCats = new EnumMap<>(Cat.class);
    4848        private ActionListener alWarningCatBox = new ActionListener() {
    4949                public void actionPerformed(java.awt.event.ActionEvent e) {
     
    5858        };
    5959        public JComboBox<String> platformCatBox;
    60         public EnumMap<Cat, Integer> platformCats = new EnumMap<Cat, Integer>(Cat.class);
     60        public EnumMap<Cat, Integer> platformCats = new EnumMap<>(Cat.class);
    6161        private ActionListener alPlatformCatBox = new ActionListener() {
    6262                public void actionPerformed(java.awt.event.ActionEvent e) {
     
    7171        };
    7272        public JComboBox<String> pilotCatBox;
    73         public EnumMap<Cat, Integer> pilotCats = new EnumMap<Cat, Integer>(Cat.class);
     73        public EnumMap<Cat, Integer> pilotCats = new EnumMap<>(Cat.class);
    7474        private ActionListener alPilotCatBox = new ActionListener() {
    7575                public void actionPerformed(java.awt.event.ActionEvent e) {
     
    8484        };
    8585        public JComboBox<String> rescueCatBox;
    86         public EnumMap<Cat, Integer> rescueCats = new EnumMap<Cat, Integer>(Cat.class);
     86        public EnumMap<Cat, Integer> rescueCats = new EnumMap<>(Cat.class);
    8787        private ActionListener alRescueCatBox = new ActionListener() {
    8888                public void actionPerformed(java.awt.event.ActionEvent e) {
     
    9797        };
    9898        public JComboBox<String> radioCatBox;
    99         public EnumMap<Cat, Integer> radioCats = new EnumMap<Cat, Integer>(Cat.class);
     99        public EnumMap<Cat, Integer> radioCats = new EnumMap<>(Cat.class);
    100100        private ActionListener alRadioCatBox = new ActionListener() {
    101101                public void actionPerformed(java.awt.event.ActionEvent e) {
     
    110110        };
    111111        public JComboBox<String> radarCatBox;
    112         public EnumMap<Cat, Integer> radarCats = new EnumMap<Cat, Integer>(Cat.class);
     112        public EnumMap<Cat, Integer> radarCats = new EnumMap<>(Cat.class);
    113113        private ActionListener alRadarCatBox = new ActionListener() {
    114114                public void actionPerformed(java.awt.event.ActionEvent e) {
     
    124124        public JLabel functionLabel;
    125125        public JComboBox<String> functionBox;
    126         public EnumMap<Fnc, Integer> functions = new EnumMap<Fnc, Integer>(Fnc.class);
     126        public EnumMap<Fnc, Integer> functions = new EnumMap<>(Fnc.class);
    127127        private ActionListener alfunctionBox = new ActionListener() {
    128128                public void actionPerformed(java.awt.event.ActionEvent e) {
     
    151151        public JRadioButton radioButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/RadioStationButton.png")));
    152152        public JRadioButton radarButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/RadarStationButton.png")));
    153         public EnumMap<Obj, JRadioButton> objects = new EnumMap<Obj, JRadioButton>(Obj.class);
     153        public EnumMap<Obj, JRadioButton> objects = new EnumMap<>(Obj.class);
    154154        private ActionListener alObj = new ActionListener() {
    155155                public void actionPerformed(java.awt.event.ActionEvent e) {
Note: See TracChangeset for help on using the changeset viewer.