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

[josm_plugins] fix Java 7 / unused code warnings

Location:
applications/editors/josm/plugins/smed/src/panels
Files:
15 edited

Legend:

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

    r29894 r30737  
    3636        public JToggleButton morseButton = new JToggleButton(new ImageIcon(getClass().getResource("/images/MorseButton.png")));
    3737        public JToggleButton alternatingButton = new JToggleButton(new ImageIcon(getClass().getResource("/images/AlternatingButton.png")));
    38         private EnumMap<Chr, JToggleButton> buttons = new EnumMap<Chr, JToggleButton>(Chr.class);
     38        private EnumMap<Chr, JToggleButton> buttons = new EnumMap<>(Chr.class);
    3939        private ActionListener alCharButton = new ActionListener() {
    4040                public void actionPerformed(java.awt.event.ActionEvent e) {
  • applications/editors/josm/plugins/smed/src/panels/PanelCol.java

    r29894 r30737  
    3434        public JRadioButton magentaButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/MagentaButton.png")));
    3535        public JRadioButton pinkButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/PinkButton.png")));
    36         public EnumMap<Col, JRadioButton> colours = new EnumMap<Col, JRadioButton>(Col.class);
     36        public EnumMap<Col, JRadioButton> colours = new EnumMap<>(Col.class);
    3737        private ActionListener alColour = new ActionListener() {
    3838                public void actionPerformed(java.awt.event.ActionEvent e) {
     
    9494        private JPanel stack;
    9595        private ButtonGroup stackColours = new ButtonGroup();
    96         private ArrayList<JRadioButton> stackCol = new ArrayList<JRadioButton>();
     96        private ArrayList<JRadioButton> stackCol = new ArrayList<>();
    9797        private int stackIdx = 0;
    9898        private ActionListener alStack = new ActionListener() {
  • applications/editors/josm/plugins/smed/src/panels/PanelFog.java

    r29894 r30737  
    2424        public JRadioButton gongButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/FogGongButton.png")));
    2525        public JRadioButton explosButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/FogExplosButton.png")));
    26         private EnumMap<Fog, JRadioButton> fogs = new EnumMap<Fog, JRadioButton>(Fog.class);
     26        private EnumMap<Fog, JRadioButton> fogs = new EnumMap<>(Fog.class);
    2727        private ActionListener alFog = new ActionListener() {
    2828                public void actionPerformed(java.awt.event.ActionEvent e) {
  • applications/editors/josm/plugins/smed/src/panels/PanelHaz.java

    r29894 r30737  
    8282        public JRadioButton beaconButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/BeaconButton.png")));
    8383        public JRadioButton towerButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/TowerButton.png")));
    84         public EnumMap<Shp, JRadioButton> shapes = new EnumMap<Shp, JRadioButton>(Shp.class);
    85         public EnumMap<Shp, Obj> carObjects = new EnumMap<Shp, Obj>(Shp.class);
    86         public EnumMap<Shp, Obj> isdObjects = new EnumMap<Shp, Obj>(Shp.class);
     84        public EnumMap<Shp, JRadioButton> shapes = new EnumMap<>(Shp.class);
     85        public EnumMap<Shp, Obj> carObjects = new EnumMap<>(Shp.class);
     86        public EnumMap<Shp, Obj> isdObjects = new EnumMap<>(Shp.class);
    8787        private ActionListener alShape = new ActionListener() {
    8888                public void actionPerformed(java.awt.event.ActionEvent e) {
  • 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) {
  • applications/editors/josm/plugins/smed/src/panels/PanelLit.java

    r30532 r30737  
    4040        public JLabel visibilityLabel;
    4141        public JComboBox<String> visibilityBox;
    42         public EnumMap<Vis, Integer> visibilities = new EnumMap<Vis, Integer>(Vis.class);
     42        public EnumMap<Vis, Integer> visibilities = new EnumMap<>(Vis.class);
    4343        private ActionListener alVisibility = new ActionListener() {
    4444                public void actionPerformed(java.awt.event.ActionEvent e) {
     
    8080        public JLabel categoryLabel;
    8181        public JComboBox<String> categoryBox;
    82         public EnumMap<Lit, Integer> categories = new EnumMap<Lit, Integer>(Lit.class);
     82        public EnumMap<Lit, Integer> categories = new EnumMap<>(Lit.class);
    8383        private ActionListener alCategory = new ActionListener() {
    8484                public void actionPerformed(java.awt.event.ActionEvent e) {
     
    116116        public JLabel exhibitionLabel;
    117117        public JComboBox<String> exhibitionBox;
    118         public EnumMap<Exh, Integer> exhibitions = new EnumMap<Exh, Integer>(Exh.class);
     118        public EnumMap<Exh, Integer> exhibitions = new EnumMap<>(Exh.class);
    119119        private ActionListener alExhibition = new ActionListener() {
    120120                public void actionPerformed(java.awt.event.ActionEvent e) {
  • applications/editors/josm/plugins/smed/src/panels/PanelMore.java

    r30532 r30737  
    4545        public JLabel statusLabel;
    4646        public JComboBox<String> statusBox;
    47         public EnumMap<Sts, Integer> statuses = new EnumMap<Sts, Integer>(Sts.class);
     47        public EnumMap<Sts, Integer> statuses = new EnumMap<>(Sts.class);
    4848        private ActionListener alStatus = new ActionListener() {
    4949                public void actionPerformed(java.awt.event.ActionEvent e) {
     
    5757        public JLabel constrLabel;
    5858        public JComboBox<String> constrBox;
    59         public EnumMap<Cns, Integer> constructions = new EnumMap<Cns, Integer>(Cns.class);
     59        public EnumMap<Cns, Integer> constructions = new EnumMap<>(Cns.class);
    6060        private ActionListener alConstr = new ActionListener() {
    6161                public void actionPerformed(java.awt.event.ActionEvent e) {
     
    6969        public JLabel conLabel;
    7070        public JComboBox<String> conBox;
    71         public EnumMap<Con, Integer> conspicuities = new EnumMap<Con, Integer>(Con.class);
     71        public EnumMap<Con, Integer> conspicuities = new EnumMap<>(Con.class);
    7272        private ActionListener alCon = new ActionListener() {
    7373                public void actionPerformed(java.awt.event.ActionEvent e) {
     
    8181        public JLabel reflLabel;
    8282        public JComboBox<String> reflBox;
    83         public EnumMap<Con, Integer> reflectivities = new EnumMap<Con, Integer>(Con.class);
     83        public EnumMap<Con, Integer> reflectivities = new EnumMap<>(Con.class);
    8484        private ActionListener alRefl = new ActionListener() {
    8585                public void actionPerformed(java.awt.event.ActionEvent e) {
  • applications/editors/josm/plugins/smed/src/panels/PanelPat.java

    r29894 r30737  
    2525        public JRadioButton squareButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/SquaredButton.png")));
    2626        public JRadioButton borderButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/BorderButton.png")));
    27         public EnumMap<Pat, JRadioButton> patterns = new EnumMap<Pat, JRadioButton>(Pat.class);
     27        public EnumMap<Pat, JRadioButton> patterns = new EnumMap<>(Pat.class);
    2828        private ActionListener alPat = new ActionListener() {
    2929                public void actionPerformed(java.awt.event.ActionEvent e) {
  • applications/editors/josm/plugins/smed/src/panels/PanelPort.java

    r29894 r30737  
    2424        public JRadioButton perchButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/PerchPButton.png")));
    2525        public JRadioButton stakeButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/StakeButton.png")));
    26         public EnumMap<Shp, JRadioButton> shapes = new EnumMap<Shp, JRadioButton>(Shp.class);
    27         public EnumMap<Shp, Obj> objects = new EnumMap<Shp, Obj>(Shp.class);
     26        public EnumMap<Shp, JRadioButton> shapes = new EnumMap<>(Shp.class);
     27        public EnumMap<Shp, Obj> objects = new EnumMap<>(Shp.class);
    2828        public ActionListener alShape = new ActionListener() {
    2929                public void actionPerformed(java.awt.event.ActionEvent e) {
  • applications/editors/josm/plugins/smed/src/panels/PanelRadar.java

    r30532 r30737  
    2929        };
    3030        private JComboBox<String> radioCatBox;
    31         private EnumMap<Cat, Integer> radioCats = new EnumMap<Cat, Integer>(Cat.class);
     31        private EnumMap<Cat, Integer> radioCats = new EnumMap<>(Cat.class);
    3232        private ActionListener alRadioCatBox = new ActionListener() {
    3333                public void actionPerformed(java.awt.event.ActionEvent e) {
     
    4646        public JRadioButton raconButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/RaconButton.png")));
    4747        public JRadioButton leadingButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/LeadingRaconButton.png")));
    48         private EnumMap<Rtb, JRadioButton> rads = new EnumMap<Rtb, JRadioButton>(Rtb.class);
     48        private EnumMap<Rtb, JRadioButton> rads = new EnumMap<>(Rtb.class);
    4949        private ActionListener alRad = new ActionListener() {
    5050                public void actionPerformed(java.awt.event.ActionEvent e) {
  • applications/editors/josm/plugins/smed/src/panels/PanelSaw.java

    r29894 r30737  
    2020        public JRadioButton floatButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/FloatButton.png")));
    2121        public JRadioButton beaconButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/BeaconButton.png")));
    22         public EnumMap<Shp, JRadioButton> shapes = new EnumMap<Shp, JRadioButton>(Shp.class);
    23         public EnumMap<Shp, Obj> objects = new EnumMap<Shp, Obj>(Shp.class);
     22        public EnumMap<Shp, JRadioButton> shapes = new EnumMap<>(Shp.class);
     23        public EnumMap<Shp, Obj> objects = new EnumMap<>(Shp.class);
    2424        public ActionListener alShape = new ActionListener() {
    2525                public void actionPerformed(java.awt.event.ActionEvent e) {
  • applications/editors/josm/plugins/smed/src/panels/PanelSectors.java

    r30532 r30737  
    3737        };
    3838        public JComboBox<ImageIcon> colourBox;
    39         public EnumMap<Col, ImageIcon> colours = new EnumMap<Col, ImageIcon>(Col.class);
     39        public EnumMap<Col, ImageIcon> colours = new EnumMap<>(Col.class);
    4040        public JComboBox<String> visibilityBox;
    41         public EnumMap<Vis, String> visibilities = new EnumMap<Vis, String>(Vis.class);
     41        public EnumMap<Vis, String> visibilities = new EnumMap<>(Vis.class);
    4242        public JComboBox<String> exhibitionBox;
    43         public EnumMap<Exh, String> exhibitions = new EnumMap<Exh, String>(Exh.class);
     43        public EnumMap<Exh, String> exhibitions = new EnumMap<>(Exh.class);
    4444
    4545        public PanelSectors(SmedAction dia) {
  • applications/editors/josm/plugins/smed/src/panels/PanelSpec.java

    r30532 r30737  
    1818        public JLabel categoryLabel;
    1919        public JComboBox<String> categoryBox;
    20         public EnumMap<Cat, Integer> categories = new EnumMap<Cat, Integer>(Cat.class);
     20        public EnumMap<Cat, Integer> categories = new EnumMap<>(Cat.class);
    2121        private ActionListener alCategoryBox = new ActionListener() {
    2222                public void actionPerformed(java.awt.event.ActionEvent e) {
     
    2929        };
    3030        public JComboBox<String> mooringBox;
    31         public EnumMap<Cat, Integer> moorings = new EnumMap<Cat, Integer>(Cat.class);
     31        public EnumMap<Cat, Integer> moorings = new EnumMap<>(Cat.class);
    3232        private ActionListener alMooringBox = new ActionListener() {
    3333                public void actionPerformed(java.awt.event.ActionEvent e) {
     
    6262        public JRadioButton stakeButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/StakeButton.png")));
    6363        public JRadioButton cairnButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/CairnButton.png")));
    64         public EnumMap<Shp, JRadioButton> shapes = new EnumMap<Shp, JRadioButton>(Shp.class);
    65         public EnumMap<Shp, Obj> objects = new EnumMap<Shp, Obj>(Shp.class);
     64        public EnumMap<Shp, JRadioButton> shapes = new EnumMap<>(Shp.class);
     65        public EnumMap<Shp, Obj> objects = new EnumMap<>(Shp.class);
    6666        public ActionListener alShape = new ActionListener() {
    6767                public void actionPerformed(java.awt.event.ActionEvent e) {
  • applications/editors/josm/plugins/smed/src/panels/PanelStbd.java

    r29894 r30737  
    2424        public JRadioButton perchButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/PerchSButton.png")));
    2525        public JRadioButton stakeButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/StakeButton.png")));
    26         public EnumMap<Shp, JRadioButton> shapes = new EnumMap<Shp, JRadioButton>(Shp.class);
    27         public EnumMap<Shp, Obj> objects = new EnumMap<Shp, Obj>(Shp.class);
     26        public EnumMap<Shp, JRadioButton> shapes = new EnumMap<>(Shp.class);
     27        public EnumMap<Shp, Obj> objects = new EnumMap<>(Shp.class);
    2828        public ActionListener alShape = new ActionListener() {
    2929                public void actionPerformed(java.awt.event.ActionEvent e) {
  • applications/editors/josm/plugins/smed/src/panels/PanelTop.java

    r29894 r30737  
    3232        public JRadioButton squareDayButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/SquareDayButton.png")));
    3333        public JRadioButton circleDayButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/CircleDayButton.png")));
    34         private EnumMap<Top, JRadioButton> tops = new EnumMap<Top, JRadioButton>(Top.class);
     34        private EnumMap<Top, JRadioButton> tops = new EnumMap<>(Top.class);
    3535        private ActionListener alTop = new ActionListener() {
    3636                public void actionPerformed(java.awt.event.ActionEvent e) {
Note: See TracChangeset for help on using the changeset viewer.