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

see #8465 - use diamond operator where applicable

Location:
trunk/src/org/openstreetmap/josm/gui/history
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/DiffTableModel.java

    r5863 r7005  
    2424    }
    2525    public DiffTableModel() {
    26         this.rows = new ArrayList<TwoColumnDiff.Item>();
     26        this.rows = new ArrayList<>();
    2727    }
    2828    @Override
  • trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialogManager.java

    r6883 r7005  
    3838
    3939    protected HistoryBrowserDialogManager() {
    40         dialogs = new HashMap<Long, HistoryBrowserDialog>();
     40        dialogs = new HashMap<>();
    4141        MapView.addLayerChangeListener(this);
    4242    }
     
    108108     */
    109109    public void hideAll() {
    110         List<HistoryBrowserDialog> dialogs = new ArrayList<HistoryBrowserDialog>();
     110        List<HistoryBrowserDialog> dialogs = new ArrayList<>();
    111111        dialogs.addAll(this.dialogs.values());
    112112        for (HistoryBrowserDialog dialog: dialogs) {
  • trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java

    r6792 r7005  
    545545
    546546        protected void initKeyList() {
    547             HashSet<String> keySet = new HashSet<String>();
     547            HashSet<String> keySet = new HashSet<>();
    548548            if (current != null) {
    549549                keySet.addAll(current.getTags().keySet());
     
    552552                keySet.addAll(reference.getTags().keySet());
    553553            }
    554             keys = new ArrayList<String>(keySet);
     554            keys = new ArrayList<>(keySet);
    555555            Collections.sort(keys);
    556556            fireTableDataChanged();
  • trunk/src/org/openstreetmap/josm/gui/history/HistoryLoadTask.java

    r6830 r7005  
    6161    public HistoryLoadTask() {
    6262        super(tr("Load history"), true);
    63         toLoad = new HashSet<PrimitiveId>();
     63        toLoad = new HashSet<>();
    6464    }
    6565
     
    7575        super(parent, tr("Load history"), true);
    7676        CheckParameterUtil.ensureParameterNotNull(parent, "parent");
    77         toLoad = new HashSet<PrimitiveId>();
     77        toLoad = new HashSet<>();
    7878    }
    7979
  • trunk/src/org/openstreetmap/josm/gui/history/RelationMemberListTableCellRenderer.java

    r6883 r7005  
    3838    public RelationMemberListTableCellRenderer() {
    3939        setOpaque(true);
    40         icons = new HashMap<OsmPrimitiveType, ImageIcon>();
     40        icons = new HashMap<>();
    4141        icons.put(OsmPrimitiveType.NODE, ImageProvider.get("data", "node"));
    4242        icons.put(OsmPrimitiveType.WAY, ImageProvider.get("data", "way"));
  • trunk/src/org/openstreetmap/josm/gui/history/SelectionSynchronizer.java

    r6316 r7005  
    1818     */
    1919    public SelectionSynchronizer() {
    20         participants = new ArrayList<ListSelectionModel>();
     20        participants = new ArrayList<>();
    2121    }
    2222
  • trunk/src/org/openstreetmap/josm/gui/history/TwoColumnDiff.java

    r6316 r7005  
    5959        this.reference = Utils.copyArray(reference);
    6060        this.current = Utils.copyArray(current);
    61         referenceDiff = new ArrayList<Item>();
    62         currentDiff = new ArrayList<Item>();
     61        referenceDiff = new ArrayList<>();
     62        currentDiff = new ArrayList<>();
    6363        diff();
    6464    }
Note: See TracChangeset for help on using the changeset viewer.