Changeset 30738 in osm for applications/editors/josm/plugins/mapdust/src
- Timestamp:
- 2014-10-19T01:27:04+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/util/http/HttpConnector.java
r25591 r30738 38 38 import java.net.URLEncoder; 39 39 import java.util.Map; 40 40 41 import org.openstreetmap.josm.plugins.mapdust.util.retry.RetryAgent; 41 42 import org.openstreetmap.josm.plugins.mapdust.util.retry.RetrySetup; … … 160 161 /* 3: write content */ 161 162 if (sbEncodeParameters.length() > 0) { 162 OutputStreamWriter out = 163 new OutputStreamWriter(connection.getOutputStream()); 164 165 out.write(sbEncodeParameters.toString()); 166 out.close(); 163 try (OutputStreamWriter out = 164 new OutputStreamWriter(connection.getOutputStream())) { 165 out.write(sbEncodeParameters.toString()); 166 } 167 167 } 168 168
Note:
See TracChangeset
for help on using the changeset viewer.