Ignore:
Timestamp:
2016-07-23T18:46:45+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/gui/preferences/validator/ValidatorTestsPreference.java

    r9778 r10611  
    55
    66import java.awt.GridBagLayout;
    7 import java.awt.event.ActionEvent;
    87import java.awt.event.ActionListener;
    98import java.util.ArrayList;
     
    7675        testPanel.add(prefOtherUpload, GBC.eol());
    7776
    78         ActionListener otherUploadEnabled = new ActionListener() {
    79             @Override
    80             public void actionPerformed(ActionEvent e) {
    81                 prefOtherUpload.setEnabled(prefOther.isSelected());
    82             }
    83         };
     77        ActionListener otherUploadEnabled = e -> prefOtherUpload.setEnabled(prefOther.isSelected());
    8478        prefOther.addActionListener(otherUploadEnabled);
    8579        otherUploadEnabled.actionPerformed(null);
Note: See TracChangeset for help on using the changeset viewer.