Changeset 10599 in josm for trunk/test/unit


Ignore:
Timestamp:
2016-07-23T02:08:50+02:00 (5 years ago)
Author:
Don-vip
Message:

see #11390 - sonar - squid:S1610 - Java 8: Abstract classes without fields should be converted to interfaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/actions/SplitWayActionTest.java

    r10436 r10599  
    1515import org.openstreetmap.josm.JOSMFixture;
    1616import org.openstreetmap.josm.Main;
     17import org.openstreetmap.josm.actions.SplitWayAction.Strategy;
    1718import org.openstreetmap.josm.data.coor.EastNorth;
    1819import org.openstreetmap.josm.data.coor.LatLon;
     
    177178        dataSet.setSelected(Arrays.asList(w2, n3, n4, n5));
    178179
    179         final SplitWayAction.Strategy strategy = new SplitWayAction.Strategy() {
    180 
    181             @Override
    182             public Way determineWayToKeep(Iterable<Way> wayChunks) {
     180        final Strategy strategy = wayChunks -> {
    183181                final Iterator<Way> it = wayChunks.iterator();
    184182                for (int i = 0; i < indexOfWayToKeep; i++) {
     
    186184                }
    187185                return it.next();
    188             }
    189         };
     186            };
    190187        final SplitWayAction.SplitWayResult result = SplitWayAction.splitWay(
    191188                layer, w2, SplitWayAction.buildSplitChunks(w2, Arrays.asList(n3, n4, n5)), new ArrayList<OsmPrimitive>(), strategy);
Note: See TracChangeset for help on using the changeset viewer.