Changeset 10051 in josm
- Timestamp:
- 2016-03-26T21:49:06+01:00 (9 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmApi.java
r10000 r10051 281 281 * @return XML string 282 282 */ 283 pr ivateString toXml(IPrimitive o, boolean addBody) {283 protected final String toXml(IPrimitive o, boolean addBody) { 284 284 StringWriter swriter = new StringWriter(); 285 285 try (OsmWriter osmWriter = OsmWriterFactory.createOsmWriter(new PrintWriter(swriter), true, version)) { … … 302 302 * @return XML string 303 303 */ 304 pr ivateString toXml(Changeset s) {304 protected final String toXml(Changeset s) { 305 305 StringWriter swriter = new StringWriter(); 306 306 try (OsmWriter osmWriter = OsmWriterFactory.createOsmWriter(new PrintWriter(swriter), true, version)) { -
trunk/src/org/openstreetmap/josm/io/OsmWriter.java
r9970 r10051 239 239 240 240 public void visit(Changeset cs) { 241 out.print(" <changeset "); 242 out.print(" id='"+cs.getId()+'\''); 241 out.print(" <changeset id='"+cs.getId()+'\''); 243 242 if (cs.getUser() != null) { 244 out.print(" user='"+ cs.getUser().getName() +'\'');243 out.print(" user='"+ XmlWriter.encode(cs.getUser().getName()) +'\''); 245 244 out.print(" uid='"+cs.getUser().getId() +'\''); 246 245 } -
trunk/test/unit/org/openstreetmap/josm/io/CertificateAmendmentTest.java
r10019 r10051 20 20 /** 21 21 * Setup test. 22 * @throws IOException in case of I/O error23 22 */ 24 23 @BeforeClass 25 public static void setUp() throws IOException{24 public static void setUp() { 26 25 JOSMFixture.createUnitTestFixture().init(); 27 26 } -
trunk/test/unit/org/openstreetmap/josm/io/NoteImporterTest.java
r9797 r10051 18 18 /** 19 19 * Non-regression test for <a href="https://josm.openstreetmap.de/ticket/12531">Bug #12531</a>. 20 * @throws Exception if any error occurs21 20 */ 22 21 @Test 23 public void testTicket12531() throws Exception{22 public void testTicket12531() { 24 23 assertNull(Main.map); 25 24 assertTrue(new NoteImporter().importDataHandleExceptions(
Note:
See TracChangeset
for help on using the changeset viewer.