Ignore:
Timestamp:
2017-09-09T23:32:37+02:00 (9 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/data/validation/util/AggregatePrimitivesVisitor.java

    r8378 r12809  
    1010import org.openstreetmap.josm.data.osm.RelationMember;
    1111import org.openstreetmap.josm.data.osm.Way;
    12 import org.openstreetmap.josm.data.osm.visitor.AbstractVisitor;
     12import org.openstreetmap.josm.data.osm.visitor.OsmPrimitiveVisitor;
    1313
    1414/**
     
    1919 * @author frsantos
    2020 */
    21 public class AggregatePrimitivesVisitor extends AbstractVisitor {
     21public class AggregatePrimitivesVisitor implements OsmPrimitiveVisitor {
    2222    /** Aggregated data */
    2323    private final Collection<OsmPrimitive> aggregatedData = new HashSet<>();
Note: See TracChangeset for help on using the changeset viewer.