This is an automated email from the ASF dual-hosted git repository.

robertlazarski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git

commit f2ec47bab70d4ed39fc6934052884d992769a4df
Author: Robert Lazarski <alphatheory-rlazar...@github.com>
AuthorDate: Mon Feb 10 15:02:56 2025 -1000

    AXIS2-6041 add Locale.setDefault(Locale.US) to the GitHub PR supplied by 
the OP
---
 .../adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java 
b/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
index 7c4e3c9a39..40127316fc 100644
--- a/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
+++ b/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
@@ -1292,7 +1292,7 @@ public class ConverterUtil {
     public static int compare(int intValue, String value) {
         int param;
         try {
-            NumberFormat nf = NumberFormat.getInstance();
+            NumberFormat nf = NumberFormat.getInstance(Locale.US);
             param = nf.parse(value).intValue();
         } catch (Exception e) {
             throw new ObjectConversionException(e);
@@ -1327,7 +1327,7 @@ public class ConverterUtil {
     public static long compare(long longValue, String value) {
         long param;
         try {
-            NumberFormat nf = NumberFormat.getInstance();
+            NumberFormat nf = NumberFormat.getInstance(Locale.US);
             param = nf.parse(value).longValue();
         } catch (Exception e) {
             throw new ObjectConversionException(e);
@@ -1343,7 +1343,7 @@ public class ConverterUtil {
     public static int compare(short shortValue, String value) {
         short param;
         try {
-            NumberFormat nf = NumberFormat.getInstance();
+            NumberFormat nf = NumberFormat.getInstance(Locale.US);
             param = nf.parse(value).shortValue();
         } catch (Exception e) {
             throw new ObjectConversionException(e);

Reply via email to