Ignore:
Timestamp:
2013-07-19T21:55:32+02:00 (7 years ago)
Author:
stoecker
Message:

better style

File:
1 edited

Legend:

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

    r6076 r6077  
    9191    static public OAuthParameters createFromPreferences(Preferences pref) {
    9292        OAuthParameters parameters = createDefault(pref.get("osm-server.url"));
    93         parameters.setConsumerKey(pref.get("oauth.settings.consumer-key", DEFAULT_JOSM_CONSUMER_KEY));
    94         parameters.setConsumerSecret(pref.get("oauth.settings.consumer-secret", DEFAULT_JOSM_CONSUMER_SECRET));
     93        parameters.setConsumerKey(pref.get("oauth.settings.consumer-key", parameters.getConsumerKey()));
     94        parameters.setConsumerSecret(pref.get("oauth.settings.consumer-secret", parameters.getConsumerSecret()));
    9595        parameters.setRequestTokenUrl(pref.get("oauth.settings.request-token-url", parameters.getRequestTokenUrl()));
    9696        parameters.setAccessTokenUrl(pref.get("oauth.settings.access-token-url", parameters.getAccessTokenUrl()));
Note: See TracChangeset for help on using the changeset viewer.