Ignore:
Timestamp:
2015-12-26T23:42:00+01:00 (8 years ago)
Author:
simon04
Message:

see #12231 - Use HttpClient instead of some Utils.openHttpConnection usages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MainApplication.java

    r8870 r9171  
    6565import org.openstreetmap.josm.tools.BugReportExceptionHandler;
    6666import org.openstreetmap.josm.tools.FontsManager;
     67import org.openstreetmap.josm.tools.HttpClient;
    6768import org.openstreetmap.josm.tools.I18n;
    6869import org.openstreetmap.josm.tools.ImageProvider;
     
    392393            for (String i : args.get(Option.LOAD_PREFERENCES)) {
    393394                info("Reading preferences from " + i);
    394                 try (InputStream is = Utils.openURL(new URL(i))) {
     395                try (InputStream is = HttpClient.create(new URL(i)).connect().getContent()) {
    395396                    config.openAndReadXML(is);
    396397                } catch (Exception ex) {
Note: See TracChangeset for help on using the changeset viewer.