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/projection/datum/NTV2SubGrid.java

    r5909 r6104  
    163163                return this;
    164164            else {
    165                 for (int i = 0; i < subGrid.length; i++) {
    166                     if (subGrid[i].isCoordWithin(lon, lat))
    167                         return subGrid[i].getSubGridForCoord(lon, lat);
     165                for (NTV2SubGrid aSubGrid : subGrid) {
     166                    if (aSubGrid.isCoordWithin(lon, lat))
     167                        return aSubGrid.getSubGridForCoord(lon, lat);
    168168                }
    169169                return this;
Note: See TracChangeset for help on using the changeset viewer.