Changeset 13257 in josm


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

fix some recent Sonar issues

Location:
trunk/src/org/openstreetmap/josm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/gpx/GpxData.java

    r13236 r13257  
    244244
    245245        clearTracks();
    246         trks.stream().forEachOrdered(trk -> addTrack(trk));
     246        trks.stream().forEachOrdered(this::addTrack);
    247247    }
    248248
  • 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
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/LoadAndZoomHandler.java

    r13212 r13257  
    6262    private final Set<SimplePrimitiveId> toSelect = new HashSet<>();
    6363
    64     private Boolean isKeepingCurrentSelection = false;
     64    private boolean isKeepingCurrentSelection;
    6565
    6666    @Override
Note: See TracChangeset for help on using the changeset viewer.