Ignore:
Timestamp:
2018-08-11T16:10:32+02:00 (6 years ago)
Author:
Don-vip
Message:

see #15229 - deprecate all Main methods returning an URL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/oauth/OAuthParameters.java

    r13173 r14119  
    44import java.util.Objects;
    55
    6 import org.openstreetmap.josm.Main;
    76import org.openstreetmap.josm.io.OsmApi;
    87import org.openstreetmap.josm.spi.preferences.Config;
     
    5655        }
    5756
    58         if (apiUrl != null && !OsmApi.DEFAULT_API_URL.equals(apiUrl)) {
     57        if (apiUrl != null && !Config.getUrls().getDefaultOsmApiUrl().equals(apiUrl)) {
    5958            consumerKey = ""; // a custom consumer key is required
    6059            consumerSecret = ""; // a custom consumer secret is requireds
     
    6362            consumerKey = DEFAULT_JOSM_CONSUMER_KEY;
    6463            consumerSecret = DEFAULT_JOSM_CONSUMER_SECRET;
    65             serverUrl = Main.getOSMWebsite();
     64            serverUrl = Config.getUrls().getOSMWebsite();
    6665        }
    6766
Note: See TracChangeset for help on using the changeset viewer.