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/command/DeleteCommand.java

    r5612 r6104  
    395395        // remove the objects from their parent relations
    396396        //
    397         Iterator<Relation> iterator = OsmPrimitive.getFilteredSet(OsmPrimitive.getReferrer(primitivesToDelete), Relation.class).iterator();
    398         while (iterator.hasNext()) {
    399             Relation cur = iterator.next();
     397        for (Relation cur : OsmPrimitive.getFilteredSet(OsmPrimitive.getReferrer(primitivesToDelete), Relation.class)) {
    400398            Relation rel = new Relation(cur);
    401399            rel.removeMembersFor(primitivesToDelete);
Note: See TracChangeset for help on using the changeset viewer.