Changeset 30436 in osm for applications/editors/josm/plugins/reverter/src/reverter/OsmServerMultiObjectReader.java
- Timestamp:
- 2014-05-09T05:21:14+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reverter/src/reverter/OsmServerMultiObjectReader.java
r29548 r30436 12 12 import org.openstreetmap.josm.io.OsmServerReader; 13 13 import org.openstreetmap.josm.io.OsmTransferException; 14 import org.openstreetmap.josm.tools.Utils;15 14 import org.xml.sax.SAXException; 16 15 … … 30 29 sb.append(version); 31 30 progressMonitor.beginTask("", 1); 32 InputStream in = getInputStream(sb.toString(), progressMonitor.createSubTaskMonitor(1, true)); 33 try { 31 try (InputStream in = getInputStream(sb.toString(), progressMonitor.createSubTaskMonitor(1, true))) { 34 32 rdr.addData(in); 35 33 } catch (Exception e) { … … 37 35 } finally { 38 36 progressMonitor.finishTask(); 39 Utils.close(in);40 37 } 41 38 }
Note:
See TracChangeset
for help on using the changeset viewer.