Ticket #2420: default-api-version.patch
File default-api-version.patch, 815 bytes (added by , 16 years ago) |
---|
-
src/org/openstreetmap/josm/io/OsmWriter.java
23 23 */ 24 24 public class OsmWriter extends XmlWriter implements Visitor { 25 25 26 public final String DEFAULT_API_VERSION = "0.6"; 27 26 28 /** 27 29 * The counter for newly created objects. Starts at -1 and goes down. 28 30 */ … … 42 44 public OsmWriter(PrintWriter out, boolean osmConform, String version) { 43 45 super(out); 44 46 this.osmConform = osmConform; 45 this.version = version;47 this.version = (version == null ? DEFAULT_API_VERSION : version); 46 48 } 47 49 48 50 public void setWithBody(boolean wb) {