Ignore:
Timestamp:
2010-01-29T22:26:58+01:00 (14 years ago)
Author:
mjulius
Message:

remove OsmPrimitive.entrySet()
using keySet()/get() or getKeys() instead

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java

    r2842 r2906  
    250250        ways.add(b);
    251251
    252         // This is mostly copied and pasted from CombineWayAction.java and one day should be moved into tools
     252        // FIXME: This is mostly copied and pasted from CombineWayAction.java and one day should be moved into tools
    253253        Map<String, Set<String>> props = new TreeMap<String, Set<String>>();
    254254        for (Way w : ways) {
    255             for (Entry<String,String> e : w.entrySet()) {
    256                 if (!props.containsKey(e.getKey())) {
    257                     props.put(e.getKey(), new TreeSet<String>());
    258                 }
    259                 props.get(e.getKey()).add(e.getValue());
     255            for (String key: w.keySet()) {
     256                if (!props.containsKey(key)) {
     257                    props.put(key, new TreeSet<String>());
     258                }
     259                props.get(key).add(w.get(key));
    260260            }
    261261        }
Note: See TracChangeset for help on using the changeset viewer.