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/actions/UploadSelectionAction.java

    r12663 r12809  
    1818import org.openstreetmap.josm.Main;
    1919import org.openstreetmap.josm.data.APIDataSet;
    20 import org.openstreetmap.josm.data.osm.Changeset;
    2120import org.openstreetmap.josm.data.osm.DataSet;
    2221import org.openstreetmap.josm.data.osm.DefaultNameFormatter;
     
    2524import org.openstreetmap.josm.data.osm.Relation;
    2625import org.openstreetmap.josm.data.osm.Way;
    27 import org.openstreetmap.josm.data.osm.visitor.Visitor;
     26import org.openstreetmap.josm.data.osm.visitor.OsmPrimitiveVisitor;
    2827import org.openstreetmap.josm.gui.MainApplication;
    2928import org.openstreetmap.josm.gui.PleaseWaitRunnable;
     
    183182     *
    184183     */
    185     static class UploadHullBuilder implements Visitor {
     184    static class UploadHullBuilder implements OsmPrimitiveVisitor {
    186185        private Set<OsmPrimitive> hull;
    187186
     
    225224                }
    226225            }
    227         }
    228 
    229         @Override
    230         public void visit(Changeset cs) {
    231             // do nothing
    232226        }
    233227
Note: See TracChangeset for help on using the changeset viewer.