Ignore:
Timestamp:
2014-04-26T17:39:23+02:00 (10 years ago)
Author:
Don-vip
Message:

see #8465 - use diamond operator where applicable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ChangesetDialog.java

    r7001 r7005  
    9292        inSelectionModel = new ChangesetInSelectionListModel(selectionModel);
    9393
    94         lstInSelection = new JList<Changeset>(inSelectionModel);
     94        lstInSelection = new JList<>(inSelectionModel);
    9595        lstInSelection.setSelectionModel(selectionModel);
    9696        lstInSelection.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
     
    9999        selectionModel = new DefaultListSelectionModel();
    100100        inActiveDataLayerModel = new ChangesetsInActiveDataLayerListModel(selectionModel);
    101         lstInActiveDataLayer = new JList<Changeset>(inActiveDataLayerModel);
     101        lstInActiveDataLayer = new JList<>(inActiveDataLayerModel);
    102102        lstInActiveDataLayer.setSelectionModel(selectionModel);
    103103        lstInActiveDataLayer.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
     
    302302            if (ds == null || ids == null)
    303303                return;
    304             Set<OsmPrimitive> sel = new HashSet<OsmPrimitive>();
     304            Set<OsmPrimitive> sel = new HashSet<>();
    305305            for (OsmPrimitive p: ds.allPrimitives()) {
    306306                if (ids.contains(p.getChangesetId())) {
     
    485485            ChangesetListModel model = getCurrentChangesetListModel();
    486486            Set<Integer> sel = model.getSelectedChangesetIds();
    487             final Set<Integer> toDownload = new HashSet<Integer>();
     487            final Set<Integer> toDownload = new HashSet<>();
    488488            ChangesetCache cc = ChangesetCache.getInstance();
    489489            for (int id: sel) {
Note: See TracChangeset for help on using the changeset viewer.