Changeset 10733 in josm for trunk/test/unit
- Timestamp:
- 2016-08-04T23:55:20+02:00 (8 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/osm/NodeDataTest.java
r9994 r10733 20 20 data.setChangesetId(314159); 21 21 final Object readData; 22 try ( finalByteArrayOutputStream bytes = new ByteArrayOutputStream();23 finalObjectOutputStream out = new ObjectOutputStream(bytes)) {22 try (ByteArrayOutputStream bytes = new ByteArrayOutputStream(); 23 ObjectOutputStream out = new ObjectOutputStream(bytes)) { 24 24 out.writeObject(data); 25 try ( finalObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray()))) {25 try (ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray()))) { 26 26 readData = in.readObject(); 27 27 } -
trunk/test/unit/org/openstreetmap/josm/data/osm/WayDataTest.java
r9994 r10733 20 20 data.setChangesetId(314159); 21 21 final Object readData; 22 try ( finalByteArrayOutputStream bytes = new ByteArrayOutputStream();23 finalObjectOutputStream out = new ObjectOutputStream(bytes)) {22 try (ByteArrayOutputStream bytes = new ByteArrayOutputStream(); 23 ObjectOutputStream out = new ObjectOutputStream(bytes)) { 24 24 out.writeObject(data); 25 try ( finalObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray()))) {25 try (ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray()))) { 26 26 readData = in.readObject(); 27 27 } -
trunk/test/unit/org/openstreetmap/josm/io/GpxReaderTest.java
r9958 r10733 32 32 public static GpxData parseGpxData(String filename) throws IOException, SAXException { 33 33 final GpxData result; 34 try ( finalFileInputStream in = new FileInputStream(new File(filename))) {35 finalGpxReader reader = new GpxReader(in);34 try (FileInputStream in = new FileInputStream(new File(filename))) { 35 GpxReader reader = new GpxReader(in); 36 36 assertTrue(reader.parse(false)); 37 37 result = reader.getGpxData();
Note:
See TracChangeset
for help on using the changeset viewer.