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/cadastre-fr/src/cadastre_fr/CadastreInterface.java

    r29801 r30532  
    414414            communeList[i + 1] = listOfCommunes.elementAt(i).substring(listOfCommunes.elementAt(i).indexOf(">")+1);
    415415        }
    416         JComboBox inputCommuneList = new JComboBox(communeList);
     416        JComboBox<String> inputCommuneList = new JComboBox<>(communeList);
    417417        p.add(inputCommuneList, GBC.eol().fill(GBC.HORIZONTAL).insets(10, 0, 0, 0));
    418418        JOptionPane pane = new JOptionPane(p, JOptionPane.INFORMATION_MESSAGE, JOptionPane.OK_CANCEL_OPTION, null) {
     
    432432    private int selectFeuilleDialog() {
    433433        JPanel p = new JPanel(new GridBagLayout());
    434         Vector<String> ImageNames = new Vector<String>();
     434        Vector<String> imageNames = new Vector<String>();
    435435        for (PlanImage src : listOfFeuilles) {
    436             ImageNames.add(src.name);
    437         }
    438         JComboBox inputFeuilleList = new JComboBox(ImageNames);
     436            imageNames.add(src.name);
     437        }
     438        JComboBox<String> inputFeuilleList = new JComboBox<>(imageNames);
    439439        p.add(inputFeuilleList, GBC.eol().fill(GBC.HORIZONTAL).insets(10, 0, 0, 0));
    440440        JOptionPane pane = new JOptionPane(p, JOptionPane.INFORMATION_MESSAGE, JOptionPane.OK_CANCEL_OPTION, null);
Note: See TracChangeset for help on using the changeset viewer.