Skip to content

Commit f9592bf

Browse files
authored
Fixes NumericFormatter failure on systems with other decimal separator (#443)
1 parent 5bac075 commit f9592bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

com.microsoft.java.debug.core/src/test/java/com/microsoft/java/debug/core/adapter/formatter/NumericFormatterTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
import com.sun.jdi.Value;
3030
import com.sun.jdi.VirtualMachine;
3131

32+
import java.util.Locale;
33+
3234
import static com.microsoft.java.debug.core.adapter.formatter.NumericFormatter.NUMERIC_FORMAT_OPTION;
3335
import static com.microsoft.java.debug.core.adapter.formatter.NumericFormatter.NUMERIC_PRECISION_OPTION;
3436
import static org.junit.Assert.*;
@@ -38,6 +40,7 @@ public class NumericFormatterTest extends BaseJdiTestCase {
3840
@Before
3941
public void setup() throws Exception {
4042
super.setup();
43+
Locale.setDefault(Locale.US);
4144
formatter = new NumericFormatter();
4245
}
4346

0 commit comments

Comments
 (0)