Ignore:
Timestamp:
2021-03-26T22:41:30+01:00 (4 years ago)
Author:
simon04
Message:

see #20673 - Simplify DefaultNameFormatter.format(IPrimitive)

File:
1 edited

Legend:

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

    r17672 r17673  
    160160     */
    161161    public String format(IPrimitive osm) {
    162         if (osm instanceof INode) {
    163             return format((INode) osm);
    164         } else if (osm instanceof IWay) {
    165             return format((IWay<?>) osm);
    166         } else if (osm instanceof IRelation) {
    167             return format((IRelation<?>) osm);
    168         }
    169         return null;
     162        return osm.getDisplayName(this);
    170163    }
    171164
Note: See TracChangeset for help on using the changeset viewer.