Skip to content

Commit 4ec63fa

Browse files
committed
always specify local when formatting
1 parent ced4709 commit 4ec63fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/neuronrobotics/sdk/bootloader/IntelHexParser.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import java.io.IOException;
77
import java.util.ArrayList;
8+
import java.util.Locale;
89

910
import com.neuronrobotics.sdk.common.ByteList;
1011

@@ -39,7 +40,7 @@ public class IntelHexParser {
3940
*/
4041
public static String hex(long n) {
4142
// call toUpperCase() if that's required
42-
return String.format("0x%8s", Long.toHexString(n)).replace(' ', '0');
43+
return String.format(Locale.US,"0x%8s", Long.toHexString(n)).replace(' ', '0');
4344
}
4445

4546
/**

0 commit comments

Comments
 (0)