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/util/Entities.java

    r3669 r6104  
    388388                        {
    389389                            mapNameToValue = new HashMap<String, String>();
    390                             for (int in = 0; in < ARRAY.length; ++in)
    391                                 mapNameToValue.put(ARRAY[in][0], ARRAY[in][1]);
     390                            for (String[] pair : ARRAY)
     391                                mapNameToValue.put(pair[0], pair[1]);
    392392                        }
    393393                        String value = mapNameToValue.get(entityContent);
Note: See TracChangeset for help on using the changeset viewer.