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/help/HelpBrowserHistory.java

    r6316 r7005  
    1414    public HelpBrowserHistory(HelpBrowser browser) {
    1515        this.browser = browser;
    16         history = new ArrayList<String>();
     16        history = new ArrayList<>();
    1717    }
    1818
     
    5858            // do nothing just append
    5959        } else if (historyPos ==0 && history.size() > 0) {
    60             history = new ArrayList<String>(Collections.singletonList(history.get(0)));
     60            history = new ArrayList<>(Collections.singletonList(history.get(0)));
    6161        } else if (historyPos < history.size() -1 && historyPos > 0) {
    62             history = new ArrayList<String>(history.subList(0, historyPos));
     62            history = new ArrayList<>(history.subList(0, historyPos));
    6363        } else {
    64             history = new ArrayList<String>();
     64            history = new ArrayList<>();
    6565        }
    6666        if(add)
Note: See TracChangeset for help on using the changeset viewer.