Ignore:
Timestamp:
2018-05-08T14:41:28+02:00 (18 months ago)
Author:
Don-vip
Message:

better API alignment between Way and WayData

File:
1 edited

Legend:

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

    r13559 r13717  
    1919import org.openstreetmap.josm.data.osm.DataSet;
    2020import org.openstreetmap.josm.data.osm.DownloadPolicy;
    21 import org.openstreetmap.josm.data.osm.UploadPolicy;
    2221import org.openstreetmap.josm.data.osm.INode;
    2322import org.openstreetmap.josm.data.osm.IPrimitive;
     
    2827import org.openstreetmap.josm.data.osm.Relation;
    2928import org.openstreetmap.josm.data.osm.Tagged;
     29import org.openstreetmap.josm.data.osm.UploadPolicy;
    3030import org.openstreetmap.josm.data.osm.Way;
    3131import org.openstreetmap.josm.data.osm.visitor.PrimitiveVisitor;
     
    229229    }
    230230
     231    /**
     232     * Writes data sources with their respective bounds.
     233     * @param ds data set
     234     */
    231235    public void writeDataSources(DataSet ds) {
    232236        for (DataSource s : ds.getDataSources()) {
     
    263267
    264268    @Override
    265     public void visit(IWay w) {
     269    public void visit(IWay<?> w) {
    266270        if (w.isIncomplete()) return;
    267271        addCommon(w, "way");
     
    295299    }
    296300
     301    /**
     302     * Visiting call for changesets.
     303     * @param cs changeset
     304     */
    297305    public void visit(Changeset cs) {
    298306        out.print("  <changeset id='"+cs.getId()+'\'');
Note: See TracChangeset for help on using the changeset viewer.