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/PaintVisitor.java

    r12161 r12809  
    1616import org.openstreetmap.josm.data.osm.Way;
    1717import org.openstreetmap.josm.data.osm.WaySegment;
    18 import org.openstreetmap.josm.data.osm.visitor.AbstractVisitor;
     18import org.openstreetmap.josm.data.osm.visitor.OsmPrimitiveVisitor;
    1919import org.openstreetmap.josm.gui.MapView;
    2020import org.openstreetmap.josm.gui.draw.MapViewPath;
     
    2727 * @since 5671
    2828 */
    29 public class PaintVisitor extends AbstractVisitor implements ValidatorVisitor {
     29public class PaintVisitor implements OsmPrimitiveVisitor, ValidatorVisitor {
    3030    /** The graphics */
    3131    private final Graphics2D g;
Note: See TracChangeset for help on using the changeset viewer.