Skip to content

Conversation

@Aman-Mittal
Copy link
Contributor

@Aman-Mittal Aman-Mittal commented Aug 15, 2025

Description

Summary
This PR introduces refactoring and code quality improvements in specific files to enhance readability, maintainability, and consistency. No changes were made to business logic or API behavior.

Files Changed
custom/acme/loan/starter/src/test/java/com/acme/fineract/loan/starter/AcmeBusinessStepDefinitions.java
fineract-accounting/src/main/java/org/apache/fineract/accounting/closure/api/GLClosuresApiResource.java
fineract-investor/src/main/java/org/apache/fineract/investor/accounting/journalentry/service/InvestorAccountingHelper.java
fineract-investor/src/main/java/org/apache/fineract/investor/api/ExternalAssetOwnersApiResource.java
Key Changes
Refactoring: Improved code structure, readability, and removed redundant code/comments.
API Annotation Cleanup: Simplified and standardized API annotation usage for better documentation consistency.
Constant Extraction: Replaced string literals with constants in parameter usage.
Logic Simplification: Merged nested conditions for clarity.
Motivation
To standardize code style and documentation.
To reduce maintenance overhead by removing repetition and improving clarity.
To prepare the codebase for easier future enhancements.

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!

  • Write the commit message as per https://github.com/apache/fineract/#pull-requests
  • Acknowledge that we will not review PRs that are not passing the build ("green") - it is your responsibility to get a proposed PR to pass the build, not primarily the project's maintainers.
  • Create/update unit or integration tests for verifying the changes made.
  • Follow coding conventions at https://cwiki.apache.org/confluence/display/FINERACT/Coding+Conventions.
  • Add required Swagger annotation and update API documentation at fineract-provider/src/main/resources/static/legacy-docs/apiLive.htm with details of any API changes
  • Submission is not a "code dump". (Large changes can be made "in repository" via a branch. Ask on the developer mailing list for guidance, if required.)

FYI our guidelines for code reviews are at https://cwiki.apache.org/confluence/display/FINERACT/Code+Review+Guide.

@Aman-Mittal
Copy link
Contributor Author

@galovics Pls re run the workflow, i have applied the spotless java changes and now giving successfull message on

BUILD SUCCESSFUL in 23m 3s
670 actionable tasks: 585 executed, 17 from cache, 68 up-to-date
10:22:59 am: Execution finished 'build -x test -x cucumber -x doc'.

If there is any other test i have to run kindly tell me.

@Aman-Mittal
Copy link
Contributor Author

@galovics Please re run workflow

@Aman-Mittal Aman-Mittal requested a review from galovics August 23, 2025 12:18
@Aman-Mittal
Copy link
Contributor Author

@galovics Requesting you to review again as i have made more changes in files, And i noticed that in workflow rerun it was cancelled midway if any test is failing from my code please tell me.

@Aman-Mittal
Copy link
Contributor Author

Task :integration-tests:test

org.apache.fineract.integrationtests.LoanCatchUpIntegrationTest

Test testCatchUpInLockedInstance() FAILED (14.1s)

org.opentest4j.AssertionFailedError: expected: <2020-03-04> but was: <2020-03-02>
    at app//org.apache.fineract.integrationtests.LoanCatchUpIntegrationTest.testCatchUpInLockedInstance(LoanCatchUpIntegrationTest.java:128)

@Aman-Mittal
Copy link
Contributor Author

@galovics Please re run the workflow, Now all workflow should work.
Ran workflow in my forked repository
Aman-Mittal@7b0b563

Aman-Mittal and others added 23 commits August 24, 2025 18:50
apply java sptless changes

spotless apply

Bump actions/checkout from 4.2.2 to 5.0.0

Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.2 to 5.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@11bd719...08c6903)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

FINERACT-2326: Extract out external dependencies from Client and Group entity

FINERACT-2330: Buy-Down fees Accounting for non merchant product

FINERACT-2326: Missing user permission for Capitalized Income and Buydown fee
…allow conditionally register beans in `fineract-progressive-loan` module
…eaks repayment schedule and loan status to OVERPAID
…eaks repayment schedule and loan status to OVERPAID - E2E tests

Implemented Sonar Fixes
…- Reschedule installment (Extend repayment period)
…nly return the newly created Interest Refund transaction identifiers in the result.
MarianaDmytrivBinariks and others added 5 commits August 24, 2025 18:52
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 4.7.1 to 5.0.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](actions/setup-java@c5195ef...dded088)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@Aman-Mittal Aman-Mittal force-pushed the FINERACT-2346/sonarqube-fixes branch from 7b0b563 to 4e98009 Compare August 24, 2025 13:26
@Aman-Mittal
Copy link
Contributor Author

rerasising pr with sqash commit

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.