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

    r29894 r30532  
    3636                }
    3737        };
    38         public JComboBox colourBox;
     38        public JComboBox<ImageIcon> colourBox;
    3939        public EnumMap<Col, ImageIcon> colours = new EnumMap<Col, ImageIcon>(Col.class);
    40         public JComboBox visibilityBox;
     40        public JComboBox<String> visibilityBox;
    4141        public EnumMap<Vis, String> visibilities = new EnumMap<Vis, String>(Vis.class);
    42         public JComboBox exhibitionBox;
     42        public JComboBox<String> exhibitionBox;
    4343        public EnumMap<Exh, String> exhibitions = new EnumMap<Exh, String>(Exh.class);
    4444
     
    7474
    7575                TableColumn colColumn = table.getColumnModel().getColumn(1);
    76                 colourBox = new JComboBox();
     76                colourBox = new JComboBox<>();
    7777                addColItem(new ImageIcon(getClass().getResource("/images/DelButton.png")), Col.UNKCOL);
    7878                addColItem(new ImageIcon(getClass().getResource("/images/WhiteButton.png")), Col.WHITE);
     
    8787               
    8888                TableColumn visColumn = table.getColumnModel().getColumn(12);
    89                 visibilityBox = new JComboBox();
     89                visibilityBox = new JComboBox<>();
    9090                addVisibItem("", Vis.UNKVIS);
    9191                addVisibItem(Messages.getString("Intensified"), Vis.INTEN);
     
    9595               
    9696                TableColumn exhColumn = table.getColumnModel().getColumn(13);
    97                 exhibitionBox = new JComboBox();
     97                exhibitionBox = new JComboBox<>();
    9898                addExhibItem("", Exh.UNKEXH);
    9999                addExhibItem(Messages.getString("24h"), Exh.H24);
Note: See TracChangeset for help on using the changeset viewer.