Ignore:
Timestamp:
2009-07-25T18:37:45+02:00 (15 years ago)
Author:
jttt
Message:

Use OsmPrimitive methods instead of direct access to keys field when possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmWriter.java

    r1735 r1843  
    164164
    165165    private void addTags(OsmPrimitive osm, String tagname, boolean tagOpen) {
    166         if (osm.keys != null) {
     166        if (osm.hasKeys()) {
    167167            if (tagOpen) {
    168168                out.println(">");
    169169            }
    170             for (Entry<String, String> e : osm.keys.entrySet()) {
     170            for (Entry<String, String> e : osm.entrySet()) {
    171171                if ((osm instanceof Changeset) || !("created_by".equals(e.getKey())))
    172172                    out.println("    <tag k='"+ XmlWriter.encode(e.getKey()) +
Note: See TracChangeset for help on using the changeset viewer.