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

Code consolidation and refactoring #60

Merged
merged 4 commits into from
Mar 31, 2020
Merged

Conversation

mgcuthbert
Copy link
Contributor

This PR is to consolidate some common functionality found in the XML Readers in the osmosis-xml package and some common functionality found in the osmosis-replication package.

In the osmosis-replication package a lot of the classes were retrieving the working directory as an input option for the factory objects. This functionality is consolidated into a single class file "WorkingTaskManagerFactory" and so now those classes simple extend from the common class and don't need to retrieve the working directory.

In the osmosis-xml package each XML Reader was reading the input XML in the same way, and so all that code is consolidated into the "BaseXMLReader" class.

@migurski
Copy link
Collaborator

Thank you Michael, this looks good! I’ll leave this PR open for ~1 week in case anyone has any input, and then merge if there are no objections.

@migurski
Copy link
Collaborator

No objections, tests pass, merging.

@migurski migurski merged commit 7da5b6a into openstreetmap:master Mar 31, 2020
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.

2 participants