Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for compatibility with JOSM API >= 12881 #66

Closed
wants to merge 5 commits into from
Closed

Update for compatibility with JOSM API >= 12881 #66

wants to merge 5 commits into from

Conversation

floscher
Copy link
Contributor

@floscher floscher commented Sep 23, 2017

This pull request replaces calls to deprecated API methods or methods that have already been removed from the API.

All of these changes are also included in #64, so if you apply that PR, you don't need this one.

You'll need to adjust the unit tests, because the version of the JOSM testutils that you use is out of date. Otherwise this pull request fixes most of #65.
In PR #64 I fixed the problem with the outdated JOSM testutils, by using the automatically updated josm-unittest.jar artifact.

See https://josm.openstreetmap.de/ticket/15310.
This commit only makes the bare minimum of changes to comply with the new API (e.g. deprecated parts of the API are still used).
I used either `Config.getPref()` (especially for preferences without default value) or subclasses of `AbstractToStringProperty` (like `BooleanProperty`).
While doing this, I tried to minimize the number of times a property is instantiated, in order to avoid duplication of e.g. default values.

See https://josm.openstreetmap.de/ticket/15229#comment:102 for the reasoning behind this change.
@floscher floscher closed this Sep 23, 2017
@floscher floscher deleted the update_josm_api branch November 7, 2017 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant