From ecb65c39a6902158ed824348a23dbbcb42a85f01 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 30 Mar 2019 06:08:14 +0100 Subject: Bug 1366 - Use String.format((Locale)null, "..." ..) avoiding Locale output for System related Operations --- src/junit/com/jogamp/common/util/BitDemoData.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/junit/com') 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)); } } -- cgit v1.2.3