Ignore:
Timestamp:
2009-10-31T19:56:25+01:00 (16 years ago)
Author:
jttt
Message:

Better toString() for OsmPrimitive

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/Node.java

    r2284 r2363  
    112112
    113113    @Override public String toString() {
    114         if (coor == null) return "{Node id="+getId()+"}";
    115         return "{Node id="+getId()+",version="+getVersion()+",lat="+coor.lat()+",lon="+coor.lon()+"}";
     114        String coorDesc = coor == null?"":"lat="+coor.lat()+",lon="+coor.lon();
     115        return "{Node id=" + getUniqueId() + " version=" + getVersion() + " " + getFlagsAsString() + " "  + coorDesc+"}";
    116116    }
    117117
Note: See TracChangeset for help on using the changeset viewer.