Ignore:
Timestamp:
2014-04-28T00:27:06+02:00 (6 years ago)
Author:
Don-vip
Message:

see #8465 - fix easy compilation warnings

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/AbstractMergeAction.java

    r7001 r7017  
    5858
    5959    protected Layer askTargetLayer(List<Layer> targetLayers) {
    60         JosmComboBox layerList = new JosmComboBox(targetLayers.toArray());
     60        JosmComboBox<Layer> layerList = new JosmComboBox<>(targetLayers.toArray(new Layer[0]));
    6161        layerList.setRenderer(new LayerListCellRenderer());
    6262        layerList.setSelectedIndex(0);
  • trunk/src/org/openstreetmap/josm/actions/AddImageryLayerAction.java

    r6930 r7017  
    102102            final WMSLayerTree tree = new WMSLayerTree();
    103103            tree.updateTree(wms);
    104             final JComboBox formats = new JComboBox(wms.getFormats().toArray());
     104            final JComboBox<String> formats = new JComboBox<>(wms.getFormats().toArray(new String[0]));
    105105            formats.setSelectedItem(wms.getPreferredFormats());
    106106            formats.setToolTipText(tr("Select image format for WMS layer"));
Note: See TracChangeset for help on using the changeset viewer.