Ignore:
Timestamp:
2017-01-31T22:58:50+01:00 (4 years ago)
Author:
Don-vip
Message:

sonar - fb-contrib:SPP_USE_GET0 - Performance - Method uses iterator().next() on a List to get the first item

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Geometry.java

    r11378 r11516  
    8888
    8989        OsmDataLayer layer = Main.getLayerManager().getEditLayer();
    90         DataSet dataset = ways.iterator().next().getDataSet();
     90        DataSet dataset = ways.get(0).getDataSet();
    9191
    9292        //iterate over all way pairs and introduce the intersections
Note: See TracChangeset for help on using the changeset viewer.