Changeset 13204 in josm for trunk/src/org/openstreetmap/josm/plugins/PluginInformation.java
- Timestamp:
- 2017-12-17T00:17:20+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginInformation.java
r12620 r13204 5 5 6 6 import java.io.File; 7 import java.io.FileInputStream;8 7 import java.io.IOException; 9 8 import java.io.InputStream; 10 9 import java.lang.reflect.Constructor; 11 10 import java.net.URL; 11 import java.nio.file.Files; 12 import java.nio.file.InvalidPathException; 12 13 import java.text.MessageFormat; 13 14 import java.util.ArrayList; … … 114 115 this.file = file; 115 116 try ( 116 FileInputStream fis = new FileInputStream(file);117 InputStream fis = Files.newInputStream(file.toPath()); 117 118 JarInputStream jar = new JarInputStream(fis) 118 119 ) { … … 122 123 scanManifest(manifest, false); 123 124 libraries.add(0, Utils.fileToURL(file)); 124 } catch (IOException e) {125 } catch (IOException | InvalidPathException e) { 125 126 throw new PluginException(name, e); 126 127 }
Note:
See TracChangeset
for help on using the changeset viewer.