Ignore:
Timestamp:
2011-06-19T15:11:18+02:00 (13 years ago)
Author:
stoecker
Message:

see #6213 - do more file closes hopefully fixing some update problems under windows

File:
1 edited

Legend:

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

    r3936 r4145  
    7979        this.name = name;
    8080        this.file = file;
     81        FileInputStream fis = null;
    8182        JarInputStream jar = null;
    8283        try {
    83             jar = new JarInputStream(new FileInputStream(file));
     84            fis = new FileInputStream(file);
     85            jar = new JarInputStream(fis);
    8486            Manifest manifest = jar.getManifest();
    8587            if (manifest == null)
     
    9395                try {
    9496                    jar.close();
     97                } catch(IOException e) { /* ignore */ }
     98            }
     99            if (fis != null) {
     100                try {
     101                    fis.close();
    95102                } catch(IOException e) { /* ignore */ }
    96103            }
Note: See TracChangeset for help on using the changeset viewer.