Ignore:
Timestamp:
2016-07-23T20:04:31+02:00 (8 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/io/session/SessionReader.java

    r10404 r10615  
    553553        public void show(final String title, final String message, final int icon, final ProgressMonitor progressMonitor) {
    554554            try {
    555                 SwingUtilities.invokeAndWait(new Runnable() {
    556                     @Override public void run() {
    557                         ExtendedDialog dlg = new ExtendedDialog(
    558                                 Main.parent,
    559                                 title,
    560                                 new String[] {tr("Cancel"), tr("Skip layer and continue")}
    561                                 );
    562                         dlg.setButtonIcons(new String[] {"cancel", "dialogs/next"});
    563                         dlg.setIcon(icon);
    564                         dlg.setContent(message);
    565                         dlg.showDialog();
    566                         cancel = dlg.getValue() != 2;
    567                     }
     555                SwingUtilities.invokeAndWait(() -> {
     556                    ExtendedDialog dlg = new ExtendedDialog(
     557                            Main.parent,
     558                            title,
     559                            new String[] {tr("Cancel"), tr("Skip layer and continue")}
     560                            );
     561                    dlg.setButtonIcons(new String[] {"cancel", "dialogs/next"});
     562                    dlg.setIcon(icon);
     563                    dlg.setContent(message);
     564                    dlg.showDialog();
     565                    cancel = dlg.getValue() != 2;
    568566                });
    569567            } catch (InvocationTargetException | InterruptedException ex) {
Note: See TracChangeset for help on using the changeset viewer.