Ignore:
Timestamp:
2013-08-03T00:12:29+02:00 (11 years ago)
Author:
Don-vip
Message:

see #8902 - Small performance enhancements / coding style (patch by shinigami):

  • while -> foreach
  • for -> for each

plus:

  • cleanup of FileDrop class to make it more integrated into JOSM core + remove warnings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateWay.java

    r6069 r6104  
    193193        // Build the list of lat/lon
    194194        List<LatLon> wLat = new ArrayList<LatLon>(wNodesToUse.size());
    195         for (int i=0; i<wNodesToUse.size(); i++) {
    196             wLat.add(wNodesToUse.get(i).getCoor());
     195        for (Node node : wNodesToUse) {
     196            wLat.add(node.getCoor());
    197197        }
    198198        // If this way has not direction-dependant keys, make sure the list is ordered the same for all ways (fix #8015)
Note: See TracChangeset for help on using the changeset viewer.