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/OsmChangeImporter.java

    r10436 r10615  
    5353        // FIXME: remove UI stuff from IO subsystem
    5454        //
    55         GuiHelper.runInEDT(new Runnable() {
    56             @Override
    57             public void run() {
    58                 if (dataSet.allPrimitives().isEmpty()) {
    59                     JOptionPane.showMessageDialog(
    60                             Main.parent,
    61                             tr("No data found in file {0}.", filePath),
    62                             tr("Open OsmChange file"),
    63                             JOptionPane.INFORMATION_MESSAGE);
    64                 }
    65                 Main.getLayerManager().addLayer(layer);
    66                 layer.onPostLoadFromFile();
     55        GuiHelper.runInEDT(() -> {
     56            if (dataSet.allPrimitives().isEmpty()) {
     57                JOptionPane.showMessageDialog(
     58                        Main.parent,
     59                        tr("No data found in file {0}.", filePath),
     60                        tr("Open OsmChange file"),
     61                        JOptionPane.INFORMATION_MESSAGE);
    6762            }
     63            Main.getLayerManager().addLayer(layer);
     64            layer.onPostLoadFromFile();
    6865        });
    6966    }
Note: See TracChangeset for help on using the changeset viewer.