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/gui/mappaint/MapPaintStyles.java

    r6083 r6104  
    1111import java.util.Arrays;
    1212import java.util.Collection;
    13 import java.util.Iterator;
    1413import java.util.LinkedList;
    1514import java.util.List;
     
    135134            StyleList styleList = getStyles().generateStyles(virtualNode, 0.5, null, false).a;
    136135            if (styleList != null) {
    137                 for (Iterator<ElemStyle> it = styleList.iterator(); it.hasNext(); ) {
    138                     ElemStyle style = it.next();
     136                for (ElemStyle style : styleList) {
    139137                    if (style instanceof NodeElemStyle) {
    140138                        MapImage mapImage = ((NodeElemStyle) style).mapImage;
Note: See TracChangeset for help on using the changeset viewer.