Ignore:
Timestamp:
2014-04-26T17:39:23+02:00 (11 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/MapPaintDialog.java

    r6995 r7005  
    197197        // Reload local styles when they have been changed in an external editor.
    198198        // Checks file modification time.
    199         List<StyleSource> toReload = new ArrayList<StyleSource>();
     199        List<StyleSource> toReload = new ArrayList<>();
    200200        for (StyleSource s : MapPaintStyles.getStyles().getStyleSources()) {
    201201            if (s.isLocal()) {
     
    234234    protected class StylesModel extends AbstractTableModel implements MapPaintSylesUpdateListener {
    235235
    236         List<StyleSource> data = new ArrayList<StyleSource>();
     236        List<StyleSource> data = new ArrayList<>();
    237237
    238238        public StylesModel() {
    239             data = new ArrayList<StyleSource>(MapPaintStyles.getStyles().getStyleSources());
     239            data = new ArrayList<>(MapPaintStyles.getStyles().getStyleSources());
    240240        }
    241241
     
    301301        @Override
    302302        public void mapPaintStylesUpdated() {
    303             data = new ArrayList<StyleSource>(MapPaintStyles.getStyles().getStyleSources());
     303            data = new ArrayList<>(MapPaintStyles.getStyles().getStyleSources());
    304304            fireTableDataChanged();
    305305            tblStyles.repaint();
     
    308308        @Override
    309309        public void mapPaintStyleEntryUpdated(int idx) {
    310             data = new ArrayList<StyleSource>(MapPaintStyles.getStyles().getStyleSources());
     310            data = new ArrayList<>(MapPaintStyles.getStyles().getStyleSources());
    311311            fireTableRowsUpdated(idx, idx);
    312312            tblStyles.repaint();
Note: See TracChangeset for help on using the changeset viewer.