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

refactor: Major refactoring of the ubw importer #402

Open
wants to merge 4 commits into
base: release
Choose a base branch
from

Conversation

FrederikSchlemmer
Copy link
Collaborator

There were several places in the code which could be optimized. Furthermore, the indexes are now found and assigned dynamically, so that hardcoded indexes are no longer necessary.
Additionally we switched to streams in several places to simplify the code and improve the performance.

The update was made because the newer API is more usable and allows the use of streams. So the project benefits in some places by simplifying the logic.
By introducing helper classes, several places in the program code can be simplified. For example, the indices can be extracted and held in an object. Furthermore, an enum describes all possible fields that are relevant. This allows fields to be easily removed or added in the future.
The logic has been simplified in some places and repeating program code has been outsourced to separate methods. In addition, some places were implemented using streams, which simplifies the code and improves performance. Additionally there were some technical changes to used variables.
These exceptions couldn't occur in these places anymore.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant