summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/util/Bitstream.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2019-03-30 06:08:14 +0100
committerSven Gothel <[email protected]>2019-03-30 06:08:14 +0100
commitecb65c39a6902158ed824348a23dbbcb42a85f01 (patch)
tree6b3fe22223a96cc6fed7c894e5d9f816dece3fa0 /src/java/com/jogamp/common/util/Bitstream.java
parent03bcef96e3105923ccc8c827b70b97ff0aa3464c (diff)
Bug 1366 - Use String.format((Locale)null, "..." ..) avoiding Locale output for System related Operations
Diffstat (limited to 'src/java/com/jogamp/common/util/Bitstream.java')
-rw-r--r--src/java/com/jogamp/common/util/Bitstream.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/java/com/jogamp/common/util/Bitstream.java b/src/java/com/jogamp/common/util/Bitstream.java
index e75d820..2dcd099 100644
--- a/src/java/com/jogamp/common/util/Bitstream.java
+++ b/src/java/com/jogamp/common/util/Bitstream.java
@@ -33,6 +33,7 @@ import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.ByteBuffer;
+import java.util.Locale;
import jogamp.common.Debug;
@@ -1507,7 +1508,7 @@ public class Bitstream<T> {
mode = outputMode ? "output" : "input";
bpos = bytes.position();
}
- return String.format("%s, pos %d [byteP %d, bitCnt %d], bitbuf %s",
+ return String.format((Locale)null, "%s, pos %d [byteP %d, bitCnt %d], bitbuf %s",
mode, position(), bpos, bitCount, toHexBinString(true, bitBuffer, 8));
}
@@ -1531,7 +1532,7 @@ public class Bitstream<T> {
}
public static String toHexBinString(final boolean msbFirst, final int v, final int bitCount) {
final int nibbles = 0 == bitCount ? 2 : ( bitCount + 3 ) / 4;
- return String.format("[0x%0"+nibbles+"X, msbFirst %b, %s]", v, msbFirst, toBinString(msbFirst, v, bitCount));
+ return String.format((Locale)null, "[0x%0"+nibbles+"X, msbFirst %b, %s]", v, msbFirst, toBinString(msbFirst, v, bitCount));
}
public static final String toHexBinString(final boolean msbFirst, final byte[] data, final int offset, final int len) {
final StringBuilder sb = new StringBuilder();