Changeset 4087 in josm for trunk/src/org/openstreetmap/josm/plugins/PluginDownloadTask.java
- Timestamp:
- 2011-05-15T23:51:25+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginDownloadTask.java
r3530 r4087 24 24 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 25 25 import org.openstreetmap.josm.tools.CheckParameterUtil; 26 import org.openstreetmap.josm.tools.Utils; 26 27 import org.xml.sax.SAXException; 27 28 … … 145 146 throw new PluginDownloadException(e); 146 147 } finally { 147 if (in != null) { 148 try { 149 in.close(); 150 } catch(IOException e) { /* ignore */} 151 } 148 Utils.close(in); 152 149 synchronized(this) { 153 150 downloadConnection = null; 154 151 } 155 if (out != null) { 156 try { 157 out.close(); 158 } catch(IOException e) { /* ignore */} 159 } 152 Utils.close(out); 160 153 } 161 154 }
Note:
See TracChangeset
for help on using the changeset viewer.