Ignore:
Timestamp:
2016-07-23T21:38:02+02:00 (3 years ago)
Author:
Don-vip
Message:

see #11390 - sonar - squid:S1604 - Java 8: Anonymous inner classes containing only one method should become lambdas

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/DownloadPrimitivesWithReferrersTask.java

    r10611 r10616  
    138138        final Set<PrimitiveId> errs = mainTask.getMissingPrimitives();
    139139        if (errs != null && !errs.isEmpty())
    140             GuiHelper.runInEDTAndWait(() -> reportProblemDialog(errs,
     140            GuiHelper.runInEDTAndWait(reportProblemDialog(errs,
    141141                    trn("Object could not be downloaded", "Some objects could not be downloaded", errs.size()),
    142142                    trn("One object could not be downloaded.<br>",
     
    148148                    tr("missing objects:"),
    149149                    JOptionPane.ERROR_MESSAGE
    150                     ).showDialog());
     150                    )::showDialog);
    151151
    152152        // Warm about deleted primitives
     
    160160        }
    161161        if (!del.isEmpty())
    162             GuiHelper.runInEDTAndWait(() -> reportProblemDialog(del,
     162            GuiHelper.runInEDTAndWait(reportProblemDialog(del,
    163163                    trn("Object deleted", "Objects deleted", del.size()),
    164164                    trn(
     
    169169                    null,
    170170                    JOptionPane.WARNING_MESSAGE
    171             ).showDialog());
     171            )::showDialog);
    172172    }
    173173
Note: See TracChangeset for help on using the changeset viewer.