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

15 refactor duplicate code #16

Merged
merged 6 commits into from
Nov 7, 2023
Merged

15 refactor duplicate code #16

merged 6 commits into from
Nov 7, 2023

Conversation

fixje
Copy link

@fixje fixje commented Oct 1, 2023

Removed duplicate code between ADS-B, ADS-R and TIS-B messages.

Previously, static methods were defined in the corresponding ADS-B messages, and ADS-R/TIS-B messages were using these methods. So, all messages were depending on the ADS-B implementation.

To avoid this, a new package decoding has been created. It provides common static methods for decoding. There are no inter-dependencies between different message formats anymore.

Further, some more duplicate code fragments were identified and consolidated.

@fixje fixje linked an issue Oct 1, 2023 that may be closed by this pull request
Copy link
Member

@affitz affitz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, this will improve maintainability significantly. Left a few minor comments in the review that could be addressed. Otherwise good to merge

@fixje fixje merged commit d0ec4c0 into master Nov 7, 2023
@fixje fixje deleted the 15-refactor-duplicate-code branch November 13, 2023 11:56
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.

Duplicate code for ADS-R and ADS-B aircraft identification decoding
2 participants