Changeset 7005 in josm for trunk/src/org/openstreetmap/josm/gui/help/HelpBrowserHistory.java
- Timestamp:
- 2014-04-26T17:39:23+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/help/HelpBrowserHistory.java
r6316 r7005 14 14 public HelpBrowserHistory(HelpBrowser browser) { 15 15 this.browser = browser; 16 history = new ArrayList< String>();16 history = new ArrayList<>(); 17 17 } 18 18 … … 58 58 // do nothing just append 59 59 } 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))); 61 61 } 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)); 63 63 } else { 64 history = new ArrayList< String>();64 history = new ArrayList<>(); 65 65 } 66 66 if(add)
Note:
See TracChangeset
for help on using the changeset viewer.