Ignore:
Timestamp:
2016-07-23T15:46:39+02:00 (4 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/data/gpx/GpxData.java

    r10467 r10608  
    362362     */
    363363    public Iterable<Collection<WayPoint>> getLinesIterable(final boolean[] trackVisibility) {
    364         return new Iterable<Collection<WayPoint>>() {
    365             @Override
    366             public Iterator<Collection<WayPoint>> iterator() {
    367                 return new LinesIterator(GpxData.this, trackVisibility);
    368             }
    369         };
     364        return () -> new LinesIterator(GpxData.this, trackVisibility);
    370365    }
    371366
Note: See TracChangeset for help on using the changeset viewer.