Berk Emir created FINERACT-2627:
-----------------------------------
Summary: Use Collection.isEmpty() instead of size() comparison in
LoanRepositoryWrapper
Key: FINERACT-2627
URL: https://issues.apache.org/jira/browse/FINERACT-2627
Project: Apache Fineract
Issue Type: Improvement
Components: Loan
Reporter: Berk Emir
SonarCloud flags 5 occurrences in LoanRepositoryWrapper (fineract-loan module)
where collection emptiness is checked with `loans.size() > 0` instead of
`!loans.isEmpty()` (Sonar rule java:S1155).
This change replaces all 5 occurrences with `!Collection.isEmpty()`.
The behavior is identical; this is a readability/consistency cleanup only.
File:
fineract-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/LoanRepositoryWrapper.java
--
This message was sent by Atlassian Jira
(v8.20.10#820010)