Ignore:
Timestamp:
2016-09-11T02:15:50+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #13570 - Coastline validator doesn't report some problems and is slow (patch by Gerd Petermann, modified)

File:
1 edited

Legend:

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

    r10748 r10991  
    136136    }
    137137
     138    /**
     139     * Formats a name for an {@link OsmPrimitive}.
     140     *
     141     * @param osm the primitive
     142     * @return the name
     143     * @since 10991
     144     */
     145    public String format(OsmPrimitive osm) {
     146        if (osm instanceof Node) {
     147            return format((Node) osm);
     148        } else if (osm instanceof Way) {
     149            return format((Way) osm);
     150        } else if (osm instanceof Relation) {
     151            return format((Relation) osm);
     152        }
     153        return null;
     154    }
     155
    138156    @Override
    139157    public String format(Node node) {
Note: See TracChangeset for help on using the changeset viewer.