Changeset 7033 in josm for trunk/src/org/openstreetmap/josm/io/session/SessionWriter.java
- Timestamp:
- 2014-05-01T02:34:43+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/session/SessionWriter.java
r7005 r7033 240 240 241 241 public void write(File f) throws IOException { 242 OutputStream out = null; 243 try { 244 out = new FileOutputStream(f); 242 try (OutputStream out = new FileOutputStream(f)) { 243 write(out); 245 244 } catch (FileNotFoundException e) { 246 245 throw new IOException(e); 247 246 } 248 write(out);249 247 } 250 248 … … 262 260 writeJos(doc, new BufferedOutputStream(out)); 263 261 } 264 Utils.close(out);265 262 } 266 263 }
Note:
See TracChangeset
for help on using the changeset viewer.