Changeset 14833 in josm


Ignore:
Timestamp:
2019-03-05T10:03:39+01:00 (6 years ago)
Author:
GerdP
Message:

fix sonar issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorListManagementDialog.java

    r14828 r14833  
    118118                if (answer == JOptionPane.YES_OPTION || answer == JOptionPane.NO_OPTION) {
    119119                    OsmValidator.resetErrorList();
    120                     tree.forEach((ignore, description) -> {
    121                         OsmValidator.addIgnoredError(ignore, description);
    122                     });
     120                    tree.forEach(OsmValidator::addIgnoredError);
    123121                    OsmValidator.saveIgnoredErrors();
    124122                    OsmValidator.initialize();
     
    200198    }
    201199
    202     private void deleteAction(JTree tree, TreePath[] paths) {
     200    private static void deleteAction(JTree tree, TreePath[] paths) {
    203201        for (TreePath path : paths) {
    204202            tree.clearSelection();
Note: See TracChangeset for help on using the changeset viewer.