Ignore:
Timestamp:
2016-07-23T21:38:02+02:00 (5 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/tools/bugreport/BugReportSender.java

    r10404 r10616  
    132132    private void failed(String string) {
    133133        errorMessage = string;
    134         SwingUtilities.invokeLater(new Runnable() {
    135             @Override
    136             public void run() {
    137                 JPanel errorPanel = new JPanel(new GridBagLayout());
    138                 errorPanel.add(new JMultilineLabel(
    139                         tr("Opening the bug report failed. Please report manually using this website:")),
    140                         GBC.eol().fill(GridBagConstraints.HORIZONTAL));
    141                 errorPanel.add(new UrlLabel(Main.getJOSMWebsite() + "/newticket", 2), GBC.eop().insets(8, 0, 0, 0));
    142                 errorPanel.add(new DebugTextDisplay(statusText));
     134        SwingUtilities.invokeLater(() -> {
     135            JPanel errorPanel = new JPanel(new GridBagLayout());
     136            errorPanel.add(new JMultilineLabel(
     137                    tr("Opening the bug report failed. Please report manually using this website:")),
     138                    GBC.eol().fill(GridBagConstraints.HORIZONTAL));
     139            errorPanel.add(new UrlLabel(Main.getJOSMWebsite() + "/newticket", 2), GBC.eop().insets(8, 0, 0, 0));
     140            errorPanel.add(new DebugTextDisplay(statusText));
    143141
    144                 JOptionPane.showMessageDialog(Main.parent, errorPanel, tr("You have encountered a bug in JOSM"),
    145                         JOptionPane.ERROR_MESSAGE);
    146             }
     142            JOptionPane.showMessageDialog(Main.parent, errorPanel, tr("You have encountered a bug in JOSM"),
     143                    JOptionPane.ERROR_MESSAGE);
    147144        });
    148145    }
Note: See TracChangeset for help on using the changeset viewer.