Changeset 6599 in josm
- Timestamp:
- 2014-01-02T23:27:34+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Preferences.java
r6593 r6599 1026 1026 CheckParameterUtil.ensureParameterNotNull(key); 1027 1027 CheckParameterUtil.ensureParameterNotNull(def); 1028 if (defaultsMap.containsKey(key) && !def.equals(defaultsMap.get(key))) { 1028 Setting oldDef = defaultsMap.get(key); 1029 if (oldDef != null && oldDef.getValue() != null && def.getValue() != null && !def.equals(oldDef)) { 1029 1030 Main.info("Defaults for " + key + " differ: " + def + " != " + defaultsMap.get(key)); 1030 1031 } -
trunk/src/org/openstreetmap/josm/data/oauth/OAuthParameters.java
r6582 r6599 91 91 */ 92 92 static public OAuthParameters createFromPreferences(Preferences pref) { 93 OAuthParameters parameters = createDefault(pref.get("osm-server.url" , OsmApi.DEFAULT_API_URL));93 OAuthParameters parameters = createDefault(pref.get("osm-server.url")); 94 94 parameters.setConsumerKey(pref.get("oauth.settings.consumer-key", parameters.getConsumerKey())); 95 95 parameters.setConsumerSecret(pref.get("oauth.settings.consumer-secret", parameters.getConsumerSecret())); -
trunk/src/org/openstreetmap/josm/gui/oauth/OsmOAuthAuthorizationClient.java
r6582 r6599 35 35 import org.openstreetmap.josm.gui.progress.NullProgressMonitor; 36 36 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 37 import org.openstreetmap.josm.io.OsmApi;38 37 import org.openstreetmap.josm.io.OsmTransferCanceledException; 39 38 import org.openstreetmap.josm.tools.CheckParameterUtil; … … 62 61 */ 63 62 public OsmOAuthAuthorizationClient() { 64 oauthProviderParameters = OAuthParameters.createDefault(Main.pref.get("osm-server.url" , OsmApi.DEFAULT_API_URL));63 oauthProviderParameters = OAuthParameters.createDefault(Main.pref.get("osm-server.url")); 65 64 consumer = oauthProviderParameters.buildConsumer(); 66 65 provider = oauthProviderParameters.buildProvider(consumer);
Note:
See TracChangeset
for help on using the changeset viewer.