Changeset 4087 in josm for trunk/src/org/openstreetmap/josm/plugins
- Timestamp:
- 2011-05-15T23:51:25+02:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/plugins
- Files:
-
- 3 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 } -
trunk/src/org/openstreetmap/josm/plugins/ReadLocalPluginInformationTask.java
r3874 r4087 18 18 import org.openstreetmap.josm.io.OsmTransferException; 19 19 import org.openstreetmap.josm.tools.ImageProvider; 20 import org.openstreetmap.josm.tools.Utils; 20 21 import org.xml.sax.SAXException; 21 22 … … 186 187 throw new PluginListParseException(e); 187 188 } finally { 188 if (fin != null) { 189 try { 190 fin.close(); 191 } catch(IOException e){ /* ignore */} 192 } 189 Utils.close(fin); 193 190 } 194 191 } -
trunk/src/org/openstreetmap/josm/plugins/ReadRemotePluginInformationTask.java
r3730 r4087 34 34 import org.openstreetmap.josm.io.OsmTransferException; 35 35 import org.openstreetmap.josm.tools.ImageProvider; 36 import org.openstreetmap.josm.tools.Utils; 36 37 import org.xml.sax.SAXException; 37 38 … … 188 189 connection = null; 189 190 } 190 if (in != null) { 191 try { 192 in.close(); 193 } catch(IOException e){/* ignore */} 194 } 191 Utils.close(in); 195 192 monitor.finishTask(); 196 193 } … … 242 239 connection = null; 243 240 } 244 if (in != null) { 245 try { 246 in.close(); 247 } catch(IOException e){/* ignore */} 248 } 241 Utils.close(in); 249 242 monitor.finishTask(); 250 243 }
Note:
See TracChangeset
for help on using the changeset viewer.