Changeset 31869 in osm for applications/editors/josm/plugins/CommandLine/src
- Timestamp:
- 2015-12-27T15:12:22+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java
r31665 r31869 72 72 import org.openstreetmap.josm.plugins.Plugin; 73 73 import org.openstreetmap.josm.plugins.PluginInformation; 74 import org.openstreetmap.josm.tools.HttpClient; 74 75 import org.openstreetmap.josm.tools.SubclassFilteredCollection; 75 76 import org.openstreetmap.josm.tools.Utils; … … 278 279 String url = Main.pref.get("commandline.default.commands.url", 279 280 "https://github.com/Foxhind/JOSM-CommandLine-commands/archive/master.zip"); 280 try (ZipInputStream zis = new ZipInputStream( Utils.openURL(new URL(url)), StandardCharsets.UTF_8)) {281 try (ZipInputStream zis = new ZipInputStream(HttpClient.create(new URL(url)).connect().getContent(), StandardCharsets.UTF_8)) { 281 282 File dir = new File(getPluginDir()); 282 283 if (!dir.exists()) {
Note:
See TracChangeset
for help on using the changeset viewer.