Changeset 2906 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
- Timestamp:
- 2010-01-29T22:26:58+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r2869 r2906 729 729 ++ways; 730 730 } 731 for (Entry<String, String> e : osm.entrySet()) { 732 keyCount.put(e.getKey(), keyCount.containsKey(e.getKey()) ? keyCount.get(e.getKey())+1 : 1); 733 if (valueCount.containsKey(e.getKey())) { 734 Map<String, Integer> v = valueCount.get(e.getKey()); 735 v.put(e.getValue(), v.containsKey(e.getValue())? v.get(e.getValue())+1 : 1 ); 731 for (String key: osm.keySet()) { 732 String value = osm.get(key); 733 keyCount.put(key, keyCount.containsKey(key) ? keyCount.get(key) + 1 : 1); 734 if (valueCount.containsKey(key)) { 735 Map<String, Integer> v = valueCount.get(key); 736 v.put(value, v.containsKey(value)? v.get(value) + 1 : 1 ); 736 737 } else { 737 738 TreeMap<String,Integer> v = new TreeMap<String, Integer>(); 738 v.put( e.getValue(), 1);739 valueCount.put( e.getKey(), v);739 v.put(value, 1); 740 valueCount.put(key, v); 740 741 } 741 742 }
Note:
See TracChangeset
for help on using the changeset viewer.