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 Java Identifier and error handling for metadata determination #118

Closed
wants to merge 1 commit into from

Conversation

tamannaaaaa
Copy link

This commit refactors the Java identifier code to separate concerns and improve modularity. The project type and framework determination functions are now decoupled, making the code more maintainable. Additionally, error handling has been added to gracefully handle cases where project type, framework, or JDK version cannot be determined. Default values are used in such scenarios to ensure the reliability of the identifier.

Furthermore, comments have been added to explain the purpose of each function and improve code documentation. These changes enhance the overall readability and maintainability of the codebase.

Copy link
Member

@pan93412 pan93412 left a comment

Choose a reason for hiding this comment

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

Wondering if you have tested your code before. DetermineProjectType does not return err.

Besides, I don't think these function-level comments are necessary and will improve the codebase readability. 🤔

@tamannaaaaa
Copy link
Author

Apologies for the oversight. You are right; I missed the fact that the DetermineProjectType function doesn't return an error. I appreciate the feedback regarding the function-level comments as well. It's essential to strike a balance between providing enough context and not cluttering the code with unnecessary comments.

@pan93412
Copy link
Member

Close it due to inactivity. Feel free to open after you fixed up these issues :)

@pan93412 pan93412 closed this Aug 20, 2023
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