Ignore:
Timestamp:
2011-05-15T23:51:25+02:00 (13 years ago)
Author:
bastiK
Message:

PaintVisitor refactoring, includes hook for external MapRenderers (author: Gubaer)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/plugins/PluginDownloadTask.java

    r3530 r4087  
    2424import org.openstreetmap.josm.gui.progress.ProgressMonitor;
    2525import org.openstreetmap.josm.tools.CheckParameterUtil;
     26import org.openstreetmap.josm.tools.Utils;
    2627import org.xml.sax.SAXException;
    2728
     
    145146            throw new PluginDownloadException(e);
    146147        } finally {
    147             if (in != null) {
    148                 try {
    149                     in.close();
    150                 } catch(IOException e) { /* ignore */}
    151             }
     148            Utils.close(in);
    152149            synchronized(this) {
    153150                downloadConnection = null;
    154151            }
    155             if (out != null) {
    156                 try {
    157                     out.close();
    158                 } catch(IOException e) { /* ignore */}
    159             }
     152            Utils.close(out);
    160153        }
    161154    }
Note: See TracChangeset for help on using the changeset viewer.