Changeset 7005 in josm for trunk/src/org/openstreetmap/josm/actions/downloadtasks/PostDownloadHandler.java
- Timestamp:
- 2014-04-26T17:39:23+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/downloadtasks/PostDownloadHandler.java
r6643 r7005 29 29 public PostDownloadHandler(DownloadTask task, Future<?> future) { 30 30 this.task = task; 31 this.futures = new ArrayList< Future<?>>();31 this.futures = new ArrayList<>(); 32 32 if (future != null) { 33 33 this.futures.add(future); … … 42 42 public PostDownloadHandler(DownloadTask task, Future<?> ... futures) { 43 43 this.task = task; 44 this.futures = new ArrayList< Future<?>>();44 this.futures = new ArrayList<>(); 45 45 if (futures == null) return; 46 46 for (Future<?> future: futures) { … … 56 56 public PostDownloadHandler(DownloadTask task, List<Future<?>> futures) { 57 57 this.task = task; 58 this.futures = new ArrayList< Future<?>>();58 this.futures = new ArrayList<>(); 59 59 if (futures == null) return; 60 60 this.futures.addAll(futures); … … 77 77 // make sure errors are reported only once 78 78 // 79 LinkedHashSet<Object> errors = new LinkedHashSet< Object>();79 LinkedHashSet<Object> errors = new LinkedHashSet<>(); 80 80 errors.addAll(task.getErrorObjects()); 81 81 if (errors.isEmpty()) … … 106 106 // 107 107 if (!errors.isEmpty()) { 108 final Collection<String> items = new ArrayList< String>();108 final Collection<String> items = new ArrayList<>(); 109 109 for (Object error:errors) { 110 110 if (error instanceof String) {
Note:
See TracChangeset
for help on using the changeset viewer.