Skip to content

Conversation

@VAXShadow1929
Copy link
Contributor

Introduced @FieldDefaults for consistent field access levels and made repositoryMap private and final. Added a getter method for repositoryMap to improve encapsulation and adhere to OOP principles. This enhances code readability and maintainability.

Introduced `@FieldDefaults` for consistent field access levels and made `repositoryMap` private and final. Added a getter method for `repositoryMap` to improve encapsulation and adhere to OOP principles. This enhances code readability and maintainability.
@VAXShadow1929 VAXShadow1929 added the enhancement New feature or request label Dec 30, 2024
@VAXShadow1929 VAXShadow1929 requested a review from Knerio December 30, 2024 08:09
The VaxCommandRegistry field and its initialization were removed as they are no longer used in the code. This cleanup reduces redundancy and improves the maintainability of the BaseAPI class.
Replaced direct map insertion in `registerCommand` with a call to `registerServerCommand` to centralize command registration logic. Removed the unused `plugin` field for cleanup and improved clarity. These changes simplify the registry and ensure commands are properly tracked and synchronized.
Introduce a new `getMessageList` method to fetch a list of components based on a path and optional tag resolvers. This enhances flexibility for handling multi-line messages in the language system.
Replaced manual session closing with try-with-resources to ensure proper resource management and avoid potential memory leaks. This improves code readability and guarantees session closure even in case of exceptions.
Copy link
Contributor

@Knerio Knerio left a comment

Choose a reason for hiding this comment

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

The build is also failing, please double check

EinsShadow and others added 3 commits December 30, 2024 12:47
Extracted common language and resolver initialization logic into a new `initializeLanguageAndResolvers` method. This reduces duplication across methods and improves code maintainability and readability.
@Knerio Knerio merged commit b78dbc0 into main Dec 30, 2024
2 checks passed
@Knerio Knerio deleted the update/service branch December 30, 2024 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants