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: reduce visibility of fields and optimize sorting logic. #1309

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

Conversation

miurahr
Copy link
Member

@miurahr miurahr commented Mar 22, 2025

The Pull Request (PR) involves the enhancement of code readability and refinement of data handling by modifying field access levels, optimizing syntax, and introducing auxiliary values in the GUI .form setup.

Main changes:

  • Field Access Levels Updated: Changes were made in ProjectFilesList.java to modify field access levels (e.g., public to private) for better encapsulation and object-oriented design practices.

  • Sorting Logic Simplified and Optimized: Adjustments in ProjectFilesListController.java include replacing verbose sorting logic with more concise methods like Integer.compare.

  • Removal of Redundant Imports: Refactored unnecessary imports to streamline dependencies in the code.
    GUI .form Updates: Added AuxValues elements to the ProjectFilesList.form file, likely for additional GUI-related metadata and customization.

Updated variable modifiers to align with best practices, improving encapsulation in ProjectFilesList.form and ProjectFilesList.java. Simplified sorting logic in ProjectFilesListController.java by leveraging utility methods for cleaner and more efficient code.

Pull request type

Please mark github LABEL of the type of change your PR introduces:

  • refactor

Which ticket is resolved?

What does this PR change?

  • Updated variable modifiers to align with best practices, improving encapsulation in ProjectFilesList.form and ProjectFilesList.java. Simplified sorting logic in ProjectFilesListController.java by leveraging utility methods for cleaner and more efficient code.

Other information

#1296

Updated variable modifiers to align with best practices, improving encapsulation in `ProjectFilesList.form` and `ProjectFilesList.java`. Simplified sorting logic in `ProjectFilesListController.java` by leveraging utility methods for cleaner and more efficient code.

Signed-off-by: Hiroshi Miura <[email protected]>
miurahr added 2 commits March 22, 2025 13:55
Signed-off-by: Hiroshi Miura <[email protected]>
- Streamlined `DataTableStyling` with new factory methods and static imports.
- Merged and relocated key listener filtering logic to improve encapsulation in `ProjectFilesListController`.
- Enhanced code clarity by removing unnecessary methods and redundant constructors.
- Add javadoc for FilesTableColumn enum

Signed-off-by: Hiroshi Miura <[email protected]>
Copy link

❌ Quality checks failed.

Please look a Gradle Scan page for details:
https://gradle.com/s/ch2ja76nnyh3m

@miurahr miurahr changed the title Refactor: variable modifiers and optimize sorting logic. Refactor: reduce visibility of fields and optimize sorting logic. Mar 22, 2025
Reorganize imports to explicitly reference specific elements from DataTableStyling, improving code clarity and readability. This change reduces ambiguity and simplifies navigating related static references in the file.

Signed-off-by: Hiroshi Miura <[email protected]>
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