Changeset 11856 in josm for trunk/src/org/openstreetmap/josm/io/CachedFile.java
- Timestamp:
- 2017-04-08T01:51:12+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/CachedFile.java
r11493 r11856 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import java.io.BufferedInputStream;7 6 import java.io.BufferedReader; 8 7 import java.io.ByteArrayOutputStream; … … 483 482 throw new IOException(tr("The requested URL {0} was not found", urlStr)); 484 483 } 485 try (InputStream bis = new BufferedInputStream(con.getContent())) {486 Files.copy( bis, destDirFile.toPath(), StandardCopyOption.REPLACE_EXISTING);484 try (InputStream is = con.getContent()) { 485 Files.copy(is, destDirFile.toPath(), StandardCopyOption.REPLACE_EXISTING); 487 486 } 488 487 activeConnection = null;
Note:
See TracChangeset
for help on using the changeset viewer.