Ignore:
Timestamp:
2017-09-09T23:32:37+02:00 (2 years ago)
Author:
bastiK
Message:

replace abstract class AbstractVisitor by interface OsmPrimitiveVisitor; deprecate Visitor

  • data.osm.visitor.Visitor awkwardly mixes OsmPrimitive types and Changeset class; this may have been used in the past, but is no longer needed; AbstractVisitor should have been a super-interface of Visitor in the first place
  • hopefully, this is binary compatible and plugins can be updated gracefully
File:
1 edited

Legend:

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

    r12806 r12809  
    2828import org.openstreetmap.josm.data.osm.Relation;
    2929import org.openstreetmap.josm.data.osm.Way;
    30 import org.openstreetmap.josm.data.osm.visitor.AbstractVisitor;
     30import org.openstreetmap.josm.data.osm.visitor.OsmPrimitiveVisitor;
    3131import org.openstreetmap.josm.data.projection.Projection;
    3232import org.openstreetmap.josm.gui.layer.OsmDataLayer;
     
    9797    }
    9898
    99     private class GeometryPrimitiveVisitor extends AbstractVisitor {
     99    private class GeometryPrimitiveVisitor implements OsmPrimitiveVisitor {
    100100
    101101        private final JsonObjectBuilder geomObj;
Note: See TracChangeset for help on using the changeset viewer.