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/cadastre-fr/src/cadastre_fr
Files:
4 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);
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePreferenceSetting.java

    r30481 r30532  
    3737    private JCheckBox drawBoundaries = new JCheckBox(tr("Draw boundaries of downloaded data."));
    3838
    39     private JComboBox imageInterpolationMethod = new JComboBox();
     39    private JComboBox<String> imageInterpolationMethod = new JComboBox<>();
    4040
    4141    private JCheckBox disableImageCropping = new JCheckBox(tr("Disable image cropping during georeferencing."));
     
    9595    static final String DEFAULT_GRAB_MULTIPLIER = Scale.SQUARE_100M.value;
    9696
     97    /**
     98     * Constructs a new {@code CadastrePreferenceSetting}.
     99     */
    97100    public CadastrePreferenceSetting() {
    98101        super("cadastrewms.gif", I18n.tr("French cadastre WMS"),
     
    104107        );
    105108    }
    106 
    107109
    108110    public void addGui(final PreferenceTabbedPane gui) {
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CheckSourceUploadHook.java

    r23190 r30532  
    3232public class CheckSourceUploadHook implements UploadHook
    3333{
    34     /** Serializable ID */
    35     private static final long serialVersionUID = -1;
    3634
    3735    /**
     
    8280            JTextField tf = new JTextField(CadastrePlugin.source);
    8381            p.add(tf, GBC.eol());
    84             JList l = new JList(sel.toArray());
     82            JList<OsmPrimitive> l = new JList<>(sel.toArray(new OsmPrimitive[0]));
    8583            l.setCellRenderer(renderer);
    8684            l.setVisibleRowCount(l.getModel().getSize() < 6 ? l.getModel().getSize() : 10);
     
    9189                Main.main.undoRedo.add(new ChangePropertyCommand(sel, "source", tf.getText()));
    9290        }
    93 
    9491    }
    9592}
    96 
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionNewLocation.java

    r28887 r30532  
    6969                + "Use the syntax and punctuation known by www.cadastre.gouv.fr .</html>"));
    7070        JLabel labelDepartement =  new JLabel(tr("Departement"));
    71         final JComboBox inputDepartement = new JComboBox();
     71        final JComboBox<String> inputDepartement = new JComboBox<>();
    7272        for (int i=1; i<departements.length; i+=2) {
    7373            inputDepartement.addItem(departements[i]);
Note: See TracChangeset for help on using the changeset viewer.