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/actions/downloadtasks/PostDownloadHandler.java

    r6643 r7005  
    2929    public PostDownloadHandler(DownloadTask task, Future<?> future) {
    3030        this.task = task;
    31         this.futures = new ArrayList<Future<?>>();
     31        this.futures = new ArrayList<>();
    3232        if (future != null) {
    3333            this.futures.add(future);
     
    4242    public PostDownloadHandler(DownloadTask task, Future<?> ... futures) {
    4343        this.task = task;
    44         this.futures = new ArrayList<Future<?>>();
     44        this.futures = new ArrayList<>();
    4545        if (futures == null) return;
    4646        for (Future<?> future: futures) {
     
    5656    public PostDownloadHandler(DownloadTask task, List<Future<?>> futures) {
    5757        this.task = task;
    58         this.futures = new ArrayList<Future<?>>();
     58        this.futures = new ArrayList<>();
    5959        if (futures == null) return;
    6060        this.futures.addAll(futures);
     
    7777        // make sure errors are reported only once
    7878        //
    79         LinkedHashSet<Object> errors = new LinkedHashSet<Object>();
     79        LinkedHashSet<Object> errors = new LinkedHashSet<>();
    8080        errors.addAll(task.getErrorObjects());
    8181        if (errors.isEmpty())
     
    106106        //
    107107        if (!errors.isEmpty()) {
    108             final Collection<String> items = new ArrayList<String>();
     108            final Collection<String> items = new ArrayList<>();
    109109            for (Object error:errors) {
    110110                if (error instanceof String) {
Note: See TracChangeset for help on using the changeset viewer.