diff options
author | Sven Gothel <[email protected]> | 2019-03-30 06:08:14 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2019-03-30 06:08:14 +0100 |
commit | ecb65c39a6902158ed824348a23dbbcb42a85f01 (patch) | |
tree | 6b3fe22223a96cc6fed7c894e5d9f816dece3fa0 /src/junit/com/jogamp | |
parent | 03bcef96e3105923ccc8c827b70b97ff0aa3464c (diff) |
Bug 1366 - Use String.format((Locale)null, "..." ..) avoiding Locale output for System related Operations
Diffstat (limited to 'src/junit/com/jogamp')
-rw-r--r-- | src/junit/com/jogamp/common/util/BitDemoData.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/junit/com/jogamp/common/util/BitDemoData.java b/src/junit/com/jogamp/common/util/BitDemoData.java index 9d605fc..8babd20 100644 --- a/src/junit/com/jogamp/common/util/BitDemoData.java +++ b/src/junit/com/jogamp/common/util/BitDemoData.java @@ -29,6 +29,7 @@ package com.jogamp.common.util; import java.nio.ByteBuffer; +import java.util.Locale; public class BitDemoData { public static final long UNSIGNED_INT_MAX_VALUE = 0xffffffffL; @@ -166,14 +167,14 @@ public class BitDemoData { } public static String toHexBinaryString(final long v, final int bitCount) { final int nibbles = 0 == bitCount ? 2 : ( bitCount + 3 ) / 4; - return String.format("[%0"+nibbles+"X, %s]", v, toBinaryString(v, bitCount)); + return String.format((Locale)null, "[%0"+nibbles+"X, %s]", v, toBinaryString(v, bitCount)); } public static String toHexBinaryString(final int v, final int bitCount) { final int nibbles = 0 == bitCount ? 2 : ( bitCount + 3 ) / 4; - return String.format("[%0"+nibbles+"X, %s]", v, toBinaryString(v, bitCount)); + return String.format((Locale)null, "[%0"+nibbles+"X, %s]", v, toBinaryString(v, bitCount)); } public static String toHexBinaryString(final short v, final int bitCount) { final int nibbles = 0 == bitCount ? 2 : ( bitCount + 3 ) / 4; - return String.format("[%0"+nibbles+"X, %s]", v, toBinaryString(v, bitCount)); + return String.format((Locale)null, "[%0"+nibbles+"X, %s]", v, toBinaryString(v, bitCount)); } } |