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 refactoring to initialize all singletons and static objects #802

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

jordanpadams
Copy link
Member

Numerous objects and data structures throughout the code are initialized within the parent class, but not in the class initialization methods. This would lead to an infinite loop when trying to call the software >1 in the same execution workflow.

This fix includes:

  • Re-init of all global variables in classes where identified
  • Refactor of DMDocument.main to support the ability to run the software without encountering System.exit()
  • Add slf4j for future logging capabilities

Resolves #801

Numerous objects and data structures throughout the code are initialized within the parent class, but not in the class initialization methods. This would lead to an infinite loop when trying to call the software >1 in the same execution workflow.

This fix includes:
* Re-init of all global variables in classes where identified
* Refactor of DMDocument.main to support the ability to run the software without encountering System.exit()
* Add slf4j for future logging capabilities

Resolves #801
Copy link
Collaborator

@jshughes jshughes left a comment

Choose a reason for hiding this comment

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

Looks good to me. Are you available to refactor the remaining code? ;-)

@jordanpadams jordanpadams merged commit 003ccaf into i786 Jul 31, 2024
1 check passed
@jordanpadams jordanpadams deleted the i801 branch July 31, 2024 19:06
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