Ignore:
Timestamp:
2016-07-23T04:10:39+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/actions/upload/FixDataHook.java

    r10600 r10601  
    4646        deprecated.add(new FixDataTag("highway", "stile", "barrier", "stile"));
    4747        // CHECKSTYLE.ON: SingleSpaceSeparator
    48         deprecated.add(new FixData() {
    49             @Override
    50             public boolean fixKeys(Map<String, String> keys, OsmPrimitive osm) {
    51                 if (osm instanceof Relation && "multipolygon".equals(keys.get("type")) && "administrative".equals(keys.get("boundary"))) {
    52                     keys.put("type", "boundary");
    53                     return true;
    54                 }
    55                 return false;
    56             }
     48        deprecated.add((keys, osm) -> {
     49            if (osm instanceof Relation && "multipolygon".equals(keys.get("type")) && "administrative".equals(keys.get("boundary"))) {
     50                keys.put("type", "boundary");
     51                return true;
     52            }
     53            return false;
    5754        });
    5855    }
Note: See TracChangeset for help on using the changeset viewer.