Ignore:
Timestamp:
2014-10-18T23:07:52+02:00 (12 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/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) {
Note: See TracChangeset for help on using the changeset viewer.