You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by "Aman-Mittal (via GitHub)" <gi...@apache.org> on 2025/08/24 14:41:48 UTC

[PR] FINERACT-2346: Minor SonarQube fixes [fineract]

Aman-Mittal opened a new pull request, #4979:
URL: https://github.com/apache/fineract/pull/4979

   ## Description
   
   Describe the changes made and why they were made.
   
   Ignore if these details are present on the associated [Apache Fineract JIRA ticket](https://github.com/apache/fineract/pull/1284).
   
   ## 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.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] FINERACT-2346: Minor SonarQube fixes [fineract]

Posted by "adamsaghy (via GitHub)" <gi...@apache.org>.
adamsaghy commented on code in PR #4979:
URL: https://github.com/apache/fineract/pull/4979#discussion_r2372480499


##########
fineract-accounting/src/main/java/org/apache/fineract/accounting/closure/api/GLClosuresApiResource.java:
##########
@@ -89,10 +88,14 @@ public List<GLClosureData> retrieveAllClosures(@QueryParam("officeId") @Paramete
     @Path("{glClosureId}")
     @Consumes({ MediaType.APPLICATION_JSON })
     @Produces({ MediaType.APPLICATION_JSON })
-    @Operation(summary = "Retrieve an Accounting Closure", description = "Example Requests:\n" + "\n" + "glclosures/1\n" + "\n" + "\n"
-            + "/glclosures/1?fields=officeName,closingDate")
-    @ApiResponses({
-            @ApiResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(implementation = GLClosuresApiResourceSwagger.GetGlClosureResponse.class))) })
+    @Operation(summary = "Retrieve an Accounting Closure", description = """
+            Example Requests:
+
+            glclosures/1
+
+
+            /glclosures/1?fields=officeName,closingDate""")

Review Comment:
   Changing one place the description to use textblock, but left the others unchanged is not an improvement. Please either undo it or change everywhere!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] FINERACT-2346: Minor SonarQube fixes [fineract]

Posted by "Aman-Mittal (via GitHub)" <gi...@apache.org>.
Aman-Mittal commented on code in PR #4979:
URL: https://github.com/apache/fineract/pull/4979#discussion_r2375675380


##########
fineract-accounting/src/main/java/org/apache/fineract/accounting/closure/api/GLClosuresApiResource.java:
##########
@@ -89,10 +88,14 @@ public List<GLClosureData> retrieveAllClosures(@QueryParam("officeId") @Paramete
     @Path("{glClosureId}")
     @Consumes({ MediaType.APPLICATION_JSON })
     @Produces({ MediaType.APPLICATION_JSON })
-    @Operation(summary = "Retrieve an Accounting Closure", description = "Example Requests:\n" + "\n" + "glclosures/1\n" + "\n" + "\n"
-            + "/glclosures/1?fields=officeName,closingDate")
-    @ApiResponses({
-            @ApiResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(implementation = GLClosuresApiResourceSwagger.GetGlClosureResponse.class))) })
+    @Operation(summary = "Retrieve an Accounting Closure", description = """
+            Example Requests:
+
+            glclosures/1
+
+
+            /glclosures/1?fields=officeName,closingDate""")

Review Comment:
   Done as suggested replaced all description Types to textbox that i can find.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] FINERACT-2346: Minor SonarQube fixes [fineract]

Posted by "Aman-Mittal (via GitHub)" <gi...@apache.org>.
Aman-Mittal commented on PR #4979:
URL: https://github.com/apache/fineract/pull/4979#issuecomment-3218779854

   @galovics Please run workflow and review.
   https://github.com/Aman-Mittal/fineract/commit/bebed7223fc9d19af9aa011eb35bfacfab53d856


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] FINERACT-2346: Minor SonarQube fixes [fineract]

Posted by "adamsaghy (via GitHub)" <gi...@apache.org>.
adamsaghy merged PR #4979:
URL: https://github.com/apache/fineract/pull/4979


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] FINERACT-2346: Minor SonarQube fixes [fineract]

Posted by "Aman-Mittal (via GitHub)" <gi...@apache.org>.
Aman-Mittal commented on PR #4979:
URL: https://github.com/apache/fineract/pull/4979#issuecomment-3218211104

   https://github.com/apache/fineract/pull/4959
   
   Re Raised with squash commits


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] FINERACT-2346: Minor SonarQube fixes [fineract]

Posted by "adamsaghy (via GitHub)" <gi...@apache.org>.
adamsaghy commented on code in PR #4979:
URL: https://github.com/apache/fineract/pull/4979#discussion_r2306778088


##########
fineract-charge/src/main/java/org/apache/fineract/portfolio/charge/domain/Charge.java:
##########
@@ -142,20 +142,20 @@ public static Charge fromJson(final JsonCommand command, final GLAccount account
         final String currencyCode = command.stringValueOfParameterNamed("currencyCode");
 
         final ChargeAppliesTo chargeAppliesTo = ChargeAppliesTo.fromInt(command.integerValueOfParameterNamed("chargeAppliesTo"));
-        final ChargeTimeType chargeTimeType = ChargeTimeType.fromInt(command.integerValueOfParameterNamed("chargeTimeType"));
+        final ChargeTimeType chargeTimeType = ChargeTimeType.fromInt(command.integerValueOfParameterNamed(CHARGE_TIME_PARAM_NAME));
         final ChargeCalculationType chargeCalculationType = ChargeCalculationType
-                .fromInt(command.integerValueOfParameterNamed("chargeCalculationType"));
+                .fromInt(command.integerValueOfParameterNamed(CHARGE_CALCULATION_TIME_PARAM_NAME));
         final Integer chargePaymentMode = command.integerValueOfParameterNamed("chargePaymentMode");
 
         final ChargePaymentMode paymentMode = chargePaymentMode == null ? null : ChargePaymentMode.fromInt(chargePaymentMode);
 
         final boolean penalty = command.booleanPrimitiveValueOfParameterNamed("penalty");
         final boolean active = command.booleanPrimitiveValueOfParameterNamed("active");
-        final MonthDay feeOnMonthDay = command.extractMonthDayNamed("feeOnMonthDay");
-        final Integer feeInterval = command.integerValueOfParameterNamed("feeInterval");
+        final MonthDay feeOnMonthDay = command.extractMonthDayNamed(FEE_ON_MONTH_DAT_PARAM_NAME);

Review Comment:
   `FEE_ON_MONTH_DAT_PARAM_NAME` typo in the name. It should be `FEE_ON_MONTH_DAY_PARAM_NAME`, no?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] FINERACT-2346: Minor SonarQube fixes [fineract]

Posted by "adamsaghy (via GitHub)" <gi...@apache.org>.
adamsaghy commented on code in PR #4979:
URL: https://github.com/apache/fineract/pull/4979#discussion_r2372486764


##########
fineract-charge/src/main/java/org/apache/fineract/portfolio/charge/domain/Charge.java:
##########
@@ -784,4 +780,11 @@ public int hashCode() {
         return Objects.hash(name, amount, currencyCode, chargeAppliesTo, chargeTimeType, chargeCalculation, chargePaymentMode, feeOnDay,
                 feeInterval, feeOnMonth, penalty, active, deleted, minCap, maxCap, feeFrequency, account, taxGroup);
     }
+
+    public static final String CHARGE_TIME_PARAM_NAME = "chargeTimeType";
+    public static final String CHARGE_CALCULATION_TYPE_PARAM_NAME = "chargeCalculationType";
+    public static final String FEE_ON_MONTH_DAY_PARAM_NAME = "feeOnMonthDay";
+    public static final String FEE_INTERVAL_PARAM_NAME = "feeInterval";
+    public static final String LOCALE_PARAM_NAME = "locale";
+    public static final String FEE_FREQUENCY_PARAM_NAME = "feeFrequency";

Review Comment:
   this should be on the top of the class, not at the bottom.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] FINERACT-2346: Minor SonarQube fixes [fineract]

Posted by "Aman-Mittal (via GitHub)" <gi...@apache.org>.
Aman-Mittal commented on PR #4979:
URL: https://github.com/apache/fineract/pull/4979#issuecomment-3328252117

   @adamsaghy Please rerun workflow and review my changes again.
   
   Workflow run crosschecked at my forked branch 
   https://github.com/Aman-Mittal/fineract/commit/b478abcb8b429cd351c41d4a449eebe24900bcf0
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] FINERACT-2346: Minor SonarQube fixes [fineract]

Posted by "Aman-Mittal (via GitHub)" <gi...@apache.org>.
Aman-Mittal commented on code in PR #4979:
URL: https://github.com/apache/fineract/pull/4979#discussion_r2310456452


##########
fineract-core/src/main/java/org/apache/fineract/portfolio/calendar/service/CalendarUtils.java:
##########
@@ -261,13 +262,13 @@ public static String getRRuleReadable(final LocalDate startDate, final String re
             if (recur.getInterval() == 1) {
                 humanReadable = "Daily";
             } else {
-                humanReadable = "Every " + recur.getInterval() + " days";
+                humanReadable = every + recur.getInterval() + " days";

Review Comment:
   Reverted this change



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] FINERACT-2346: Minor SonarQube fixes [fineract]

Posted by "IOhacker (via GitHub)" <gi...@apache.org>.
IOhacker commented on PR #4979:
URL: https://github.com/apache/fineract/pull/4979#issuecomment-3254958584

   LGTM


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] FINERACT-2346: Minor SonarQube fixes [fineract]

Posted by "Aman-Mittal (via GitHub)" <gi...@apache.org>.
Aman-Mittal commented on PR #4979:
URL: https://github.com/apache/fineract/pull/4979#issuecomment-3235759346

   I have ran the workflow in my fork aside from kafka all checks are passing
   
   https://github.com/Aman-Mittal/fineract/commit/b649334b006be77f214de25bb8c17cd1105027d5
   
   if you want me to update the kafka image we can discuss the alternative


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] FINERACT-2346: Minor SonarQube fixes [fineract]

Posted by "Aman-Mittal (via GitHub)" <gi...@apache.org>.
Aman-Mittal commented on PR #4979:
URL: https://github.com/apache/fineract/pull/4979#issuecomment-3235755147

   @adamsaghy 
   
   Need to update the kafka image tag as current image pull will not work
   
   
   
   Run docker compose -f docker-compose-postgresql-kafka.yml up --scale fineract-worker=1 -d
   time="2025-08-29T04:41:07Z" level=warning msg="/home/runner/work/fineract/fineract/docker-compose-postgresql-kafka.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion"
    db Pulling 
    kafka Pulling 
    kafka Error manifest for bitnami/kafka:4.0.0-debian-12-r2 not found: manifest unknown: manifest unknown
    db  Interrupted
   Error response from daemon: manifest for bitnami/kafka:4.0.0-debian-12-r2 not found: manifest unknown: manifest unknown
   
   
   according to website
   
   Important Notice: Upcoming changes to the Bitnami Catalog
   This image is part of the brownout announced at [https://github.com/bitnami/containers/issues/83267⁠](https://github.com/bitnami/containers/issues/83267)
   
   Beginning August 28th, 2025, Bitnami will evolve its public catalog to offer a curated set of hardened, security-focused images under the new [Bitnami Secure Images initiative⁠](https://news.broadcom.com/app-dev/broadcom-introduces-bitnami-secure-images-for-production-ready-containerized-applications). As part of this transition:
   
   Bitnami will begin deprecating support for non-hardened, Debian-based software images in its free tier and will gradually remove tags from the public catalog. As a result, community users will have access to a reduced number of hardened images. These images are published only under the “latest” tag and are intended for development purposes
   All existing container images have been migrated from the public catalog (docker.io/bitnami) to the “Bitnami Legacy” repository (docker.io/bitnamilegacy), where they will no longer receive updates.
   For production workloads and long-term support, users are encouraged to adopt Bitnami Secure Images, which include hardened containers, smaller attack surfaces, CVE transparency (via VEX/KEV), SBOMs, and enterprise support.
   These changes aim to improve the security posture of all Bitnami users by promoting best practices for software supply chain integrity and up-to-date deployments. For more details, visit the [Bitnami Secure Images announcement⁠](https://github.com/bitnami/containers/issues/83267).
   
   
   for rest you can run the workflow again


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] FINERACT-2346: Minor SonarQube fixes [fineract]

Posted by "adamsaghy (via GitHub)" <gi...@apache.org>.
adamsaghy commented on code in PR #4979:
URL: https://github.com/apache/fineract/pull/4979#discussion_r2306788922


##########
fineract-core/src/main/java/org/apache/fineract/portfolio/calendar/service/CalendarUtils.java:
##########
@@ -261,13 +262,13 @@ public static String getRRuleReadable(final LocalDate startDate, final String re
             if (recur.getInterval() == 1) {
                 humanReadable = "Daily";
             } else {
-                humanReadable = "Every " + recur.getInterval() + " days";
+                humanReadable = every + recur.getInterval() + " days";

Review Comment:
   Unnecessary change... does not help on the readability...



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] FINERACT-2346: Minor SonarQube fixes [fineract]

Posted by "Aman-Mittal (via GitHub)" <gi...@apache.org>.
Aman-Mittal commented on code in PR #4979:
URL: https://github.com/apache/fineract/pull/4979#discussion_r2310454894


##########
fineract-charge/src/main/java/org/apache/fineract/portfolio/charge/domain/Charge.java:
##########
@@ -142,20 +142,20 @@ public static Charge fromJson(final JsonCommand command, final GLAccount account
         final String currencyCode = command.stringValueOfParameterNamed("currencyCode");
 
         final ChargeAppliesTo chargeAppliesTo = ChargeAppliesTo.fromInt(command.integerValueOfParameterNamed("chargeAppliesTo"));
-        final ChargeTimeType chargeTimeType = ChargeTimeType.fromInt(command.integerValueOfParameterNamed("chargeTimeType"));
+        final ChargeTimeType chargeTimeType = ChargeTimeType.fromInt(command.integerValueOfParameterNamed(CHARGE_TIME_PARAM_NAME));
         final ChargeCalculationType chargeCalculationType = ChargeCalculationType
-                .fromInt(command.integerValueOfParameterNamed("chargeCalculationType"));
+                .fromInt(command.integerValueOfParameterNamed(CHARGE_CALCULATION_TIME_PARAM_NAME));
         final Integer chargePaymentMode = command.integerValueOfParameterNamed("chargePaymentMode");
 
         final ChargePaymentMode paymentMode = chargePaymentMode == null ? null : ChargePaymentMode.fromInt(chargePaymentMode);
 
         final boolean penalty = command.booleanPrimitiveValueOfParameterNamed("penalty");
         final boolean active = command.booleanPrimitiveValueOfParameterNamed("active");
-        final MonthDay feeOnMonthDay = command.extractMonthDayNamed("feeOnMonthDay");
-        final Integer feeInterval = command.integerValueOfParameterNamed("feeInterval");
+        final MonthDay feeOnMonthDay = command.extractMonthDayNamed(FEE_ON_MONTH_DAT_PARAM_NAME);

Review Comment:
   Fixed now



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] FINERACT-2346: Minor SonarQube fixes [fineract]

Posted by "adamsaghy (via GitHub)" <gi...@apache.org>.
adamsaghy commented on code in PR #4979:
URL: https://github.com/apache/fineract/pull/4979#discussion_r2372480499


##########
fineract-accounting/src/main/java/org/apache/fineract/accounting/closure/api/GLClosuresApiResource.java:
##########
@@ -89,10 +88,14 @@ public List<GLClosureData> retrieveAllClosures(@QueryParam("officeId") @Paramete
     @Path("{glClosureId}")
     @Consumes({ MediaType.APPLICATION_JSON })
     @Produces({ MediaType.APPLICATION_JSON })
-    @Operation(summary = "Retrieve an Accounting Closure", description = "Example Requests:\n" + "\n" + "glclosures/1\n" + "\n" + "\n"
-            + "/glclosures/1?fields=officeName,closingDate")
-    @ApiResponses({
-            @ApiResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(implementation = GLClosuresApiResourceSwagger.GetGlClosureResponse.class))) })
+    @Operation(summary = "Retrieve an Accounting Closure", description = """
+            Example Requests:
+
+            glclosures/1
+
+
+            /glclosures/1?fields=officeName,closingDate""")

Review Comment:
   Changing one place the description to use textblock, but left the other unchanged is not an improvement. Please either undo it or change everywhere!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] FINERACT-2346: Minor SonarQube fixes [fineract]

Posted by "Aman-Mittal (via GitHub)" <gi...@apache.org>.
Aman-Mittal commented on code in PR #4979:
URL: https://github.com/apache/fineract/pull/4979#discussion_r2375672025


##########
fineract-charge/src/main/java/org/apache/fineract/portfolio/charge/domain/Charge.java:
##########
@@ -784,4 +780,11 @@ public int hashCode() {
         return Objects.hash(name, amount, currencyCode, chargeAppliesTo, chargeTimeType, chargeCalculation, chargePaymentMode, feeOnDay,
                 feeInterval, feeOnMonth, penalty, active, deleted, minCap, maxCap, feeFrequency, account, taxGroup);
     }
+
+    public static final String CHARGE_TIME_PARAM_NAME = "chargeTimeType";
+    public static final String CHARGE_CALCULATION_TYPE_PARAM_NAME = "chargeCalculationType";
+    public static final String FEE_ON_MONTH_DAY_PARAM_NAME = "feeOnMonthDay";
+    public static final String FEE_INTERVAL_PARAM_NAME = "feeInterval";
+    public static final String LOCALE_PARAM_NAME = "locale";
+    public static final String FEE_FREQUENCY_PARAM_NAME = "feeFrequency";

Review Comment:
   Done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] FINERACT-2346: Minor SonarQube fixes [fineract]

Posted by "adamsaghy (via GitHub)" <gi...@apache.org>.
adamsaghy commented on code in PR #4979:
URL: https://github.com/apache/fineract/pull/4979#discussion_r2306783099


##########
fineract-charge/src/main/java/org/apache/fineract/portfolio/charge/domain/Charge.java:
##########
@@ -784,4 +780,11 @@ public int hashCode() {
         return Objects.hash(name, amount, currencyCode, chargeAppliesTo, chargeTimeType, chargeCalculation, chargePaymentMode, feeOnDay,
                 feeInterval, feeOnMonth, penalty, active, deleted, minCap, maxCap, feeFrequency, account, taxGroup);
     }
+
+    public static final String CHARGE_TIME_PARAM_NAME = "chargeTimeType";
+    public static final String CHARGE_CALCULATION_TIME_PARAM_NAME = "chargeCalculationType";

Review Comment:
   For `chargeCalculationType` param this should be rather named to `CHARGE_CALCULATION_TYPE_PARAM_NAME`, no?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] FINERACT-2346: Minor SonarQube fixes [fineract]

Posted by "Aman-Mittal (via GitHub)" <gi...@apache.org>.
Aman-Mittal commented on code in PR #4979:
URL: https://github.com/apache/fineract/pull/4979#discussion_r2310455306


##########
fineract-charge/src/main/java/org/apache/fineract/portfolio/charge/domain/Charge.java:
##########
@@ -784,4 +780,11 @@ public int hashCode() {
         return Objects.hash(name, amount, currencyCode, chargeAppliesTo, chargeTimeType, chargeCalculation, chargePaymentMode, feeOnDay,
                 feeInterval, feeOnMonth, penalty, active, deleted, minCap, maxCap, feeFrequency, account, taxGroup);
     }
+
+    public static final String CHARGE_TIME_PARAM_NAME = "chargeTimeType";
+    public static final String CHARGE_CALCULATION_TIME_PARAM_NAME = "chargeCalculationType";

Review Comment:
   done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org