Ticket #2420: default-api-version.patch

File default-api-version.patch, 815 bytes (added by Gubaer, 16 years ago)
  • src/org/openstreetmap/josm/io/OsmWriter.java

     
    2323 */
    2424public class OsmWriter extends XmlWriter implements Visitor {
    2525
     26    public final String DEFAULT_API_VERSION = "0.6";
     27   
    2628    /**
    2729     * The counter for newly created objects. Starts at -1 and goes down.
    2830     */
     
    4244    public OsmWriter(PrintWriter out, boolean osmConform, String version) {
    4345        super(out);
    4446        this.osmConform = osmConform;
    45         this.version = version;
     47        this.version = (version == null ? DEFAULT_API_VERSION : version);
    4648    }
    4749   
    4850    public void setWithBody(boolean wb) {