Ignore:
Timestamp:
2017-12-28T23:33:18+01:00 (2 years ago)
Author:
Don-vip
Message:

fix some recent Sonar issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java

    r13210 r13257  
    239239                new SplitTracksToLayersAction(this));
    240240
    241         if (isExpertMode && expert.stream().anyMatch(t -> t.isEnabled())) {
     241        if (isExpertMode && expert.stream().anyMatch(Action::isEnabled)) {
    242242            entries.add(SeparatorLayerAction.INSTANCE);
    243             expert.stream().filter(t -> t.isEnabled()).forEach(t -> entries.add(t));
     243            expert.stream().filter(Action::isEnabled).forEach(entries::add);
    244244        }
    245245
Note: See TracChangeset for help on using the changeset viewer.