Ignore:
Timestamp:
2014-07-14T04:18:06+02:00 (10 years ago)
Author:
donvip
Message:

[josm_plugins] fix compilation warnings

Location:
applications/editors/josm/plugins/mirrored_download/src/mirrored_download
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/mirrored_download/src/mirrored_download/MirroredDownloadAction.java

    r30162 r30532  
    117117    static class MirroredDownloadDialog extends DownloadDialog {
    118118
    119         protected JComboBox/*<String>*/ overpassType;
     119        protected JComboBox<String> overpassType;
    120120        protected HistoryComboBox overpassQuery;
    121121        private static MirroredDownloadDialog instance;
     
    137137        @Override
    138138        protected void buildMainPanelAboveDownloadSelections(JPanel pnl) {
    139             overpassType = new JComboBox/*<String>*/(new String[]{"*", "node", "way", "relation"});
     139            overpassType = new JComboBox<>(new String[]{"*", "node", "way", "relation"});
    140140            pnl.add(new JLabel(tr("Object type: ")), GBC.std().insets(5, 5, 5, 5));
    141141            pnl.add(overpassType, GBC.eol().fill(GridBagConstraints.HORIZONTAL));
  • applications/editors/josm/plugins/mirrored_download/src/mirrored_download/UrlSelectionDialog.java

    r30495 r30532  
    3131  private JDialog jDialog = null;
    3232  private JTabbedPane tabbedPane = null;
    33   private JComboBox cbSelectUrl = null;
     33  private JComboBox<String> cbSelectUrl = null;
    3434  private JCheckBox cbAddMeta = null;
    3535
     
    6060    contentPane.add(label);
    6161
    62     cbSelectUrl = new JComboBox();
     62    cbSelectUrl = new JComboBox<>();
    6363    cbSelectUrl.setEditable(true);
    6464
Note: See TracChangeset for help on using the changeset viewer.