[ 
https://issues.apache.org/jira/browse/FINERACT-2538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18066272#comment-18066272
 ] 

Hemanth Madhav commented on FINERACT-2538:
------------------------------------------

Hi Adam and @fkchristian,

To answer your question, Adam—yes, my initial audit of the repository shows 
that this isn't limited to {{{}EnumValueValidator{}}}. There are several 
instances across the core and provider modules where {{String.format}} and 
{{.toLowerCase}} lack an explicit Locale, which could lead to the inconsistent 
behavior we discussed.

@fkchristian, I’ve actually already mapped out these locations as part of my 
current work for this ticket and my GSoC proposal. Since I have the full list 
of affected files ready, I can handle the comprehensive patch for the codebase 
to ensure we're using a standardized approach (like Locale.Root) everywhere.

I'm happy to share my findings with you so we can ensure the fix is thorough

> Fix String Locale compiler warning in EnumValueValidator
> --------------------------------------------------------
>
>                 Key: FINERACT-2538
>                 URL: https://issues.apache.org/jira/browse/FINERACT-2538
>             Project: Apache Fineract
>          Issue Type: Bug
>    Affects Versions: 1.10.1
>            Reporter: Hemanth Madhav
>            Priority: Major
>
> Resolved the 'String.format(String, Object...)' compiler warning in the 
> EnumValueValidator class by specifying 'Locale.US'. This ensures consistent 
> string formatting across different environments and satisfies the project's 
> static analysis requirements.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to