Skip to content

Commit f2ec47b

Browse files
author
Robert Lazarski
committed
AXIS2-6041 add Locale.setDefault(Locale.US) to the GitHub PR supplied by the OP
1 parent c7fffd0 commit f2ec47b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,7 +1292,7 @@ public static List toList(Object[] array) {
12921292
public static int compare(int intValue, String value) {
12931293
int param;
12941294
try {
1295-
NumberFormat nf = NumberFormat.getInstance();
1295+
NumberFormat nf = NumberFormat.getInstance(Locale.US);
12961296
param = nf.parse(value).intValue();
12971297
} catch (Exception e) {
12981298
throw new ObjectConversionException(e);
@@ -1327,7 +1327,7 @@ public static float compare(float floatValue, String value) {
13271327
public static long compare(long longValue, String value) {
13281328
long param;
13291329
try {
1330-
NumberFormat nf = NumberFormat.getInstance();
1330+
NumberFormat nf = NumberFormat.getInstance(Locale.US);
13311331
param = nf.parse(value).longValue();
13321332
} catch (Exception e) {
13331333
throw new ObjectConversionException(e);
@@ -1343,7 +1343,7 @@ public static long compare(long longValue, String value) {
13431343
public static int compare(short shortValue, String value) {
13441344
short param;
13451345
try {
1346-
NumberFormat nf = NumberFormat.getInstance();
1346+
NumberFormat nf = NumberFormat.getInstance(Locale.US);
13471347
param = nf.parse(value).shortValue();
13481348
} catch (Exception e) {
13491349
throw new ObjectConversionException(e);

0 commit comments

Comments
 (0)