Fix unused return value in LocalDateValidator (java:S2201) and improv…#5585
Open
sherles1 wants to merge 1 commit intoapache:developfrom
Open
Fix unused return value in LocalDateValidator (java:S2201) and improv…#5585sherles1 wants to merge 1 commit intoapache:developfrom
sherles1 wants to merge 1 commit intoapache:developfrom
Conversation
…e code documentation Resolved the SonarCloud issue (rule java:S2201) where the result of LocalDateTime.parse() was being ignored in LocalDateValidator. The method toLocalDate() now returns the parsed LocalDateTime, ensuring the return value is used and improving the reliability of date validation. Additionally, detailed comments have been added throughout the validator to clarify the purpose of each step, explain the use of reflection, document the formatter configuration, and improve overall readability for future contributors. These changes enhance maintainability and align the implementation with static analysis requirements.
IOhacker
requested changes
Mar 6, 2026
Contributor
IOhacker
left a comment
There was a problem hiding this comment.
- Access Apache Fineract Jira and assign yourself the ticket
- Comment that you are working on it
- Request feedback
- Fork the Apache Fineract repository
- Do the proper changes
- Run the Spotless Apply (it is possible that it should be run in different projects/modules)
- Build in your local dev environment and confirm that there are no issues
- Sign the commit and set the comment using the "FINERACT-{NUMBER}: {Jira text title}"
- Create the Pull request, make sure to name the PR "FINERACT-{NUMBER}: {Jira text title}" (it is verified as part of the GitHub Actions)
- Please be patient, there are several PRs at this moment and it is possible that we will request to do rebase
- Let us know for the review
Contributor
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…e code documentation
Resolved the SonarCloud issue (rule java:S2201) where the result of LocalDateTime.parse() was being ignored in LocalDateValidator. The method toLocalDate() now returns the parsed LocalDateTime, ensuring the return value is used and improving the reliability of date validation.
Additionally, detailed comments have been added throughout the validator to clarify the purpose of each step, explain the use of reflection, document the formatter configuration, and improve overall readability for future contributors.
These changes enhance maintainability and align the implementation with static analysis requirements.
Description
Describe the changes made and why they were made. (Ignore if these details are present on the associated Apache Fineract JIRA ticket.)
Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!
Your assigned reviewer(s) will follow our guidelines for code reviews.