Changeset 13906 in josm for trunk


Ignore:
Timestamp:
2018-06-10T20:48:02+02:00 (11 months ago)
Author:
Don-vip
Message:

make BoundingXYVisitor accept IPrimitive

File:
1 edited

Legend:

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

    r13905 r13906  
    1111import org.openstreetmap.josm.data.coor.LatLon;
    1212import org.openstreetmap.josm.data.osm.INode;
     13import org.openstreetmap.josm.data.osm.IPrimitive;
    1314import org.openstreetmap.josm.data.osm.IRelation;
    1415import org.openstreetmap.josm.data.osm.IRelationMember;
     
    238239     * @param primitives the collection of primitives
    239240     */
    240     public void computeBoundingBox(Collection<? extends OsmPrimitive> primitives) {
     241    public void computeBoundingBox(Collection<? extends IPrimitive> primitives) {
    241242        if (primitives == null) return;
    242         for (OsmPrimitive p: primitives) {
     243        for (IPrimitive p: primitives) {
    243244            if (p == null) {
    244245                continue;
    245246            }
    246             p.accept((PrimitiveVisitor) this);
     247            p.accept(this);
    247248        }
    248249    }
Note: See TracChangeset for help on using the changeset viewer.