Use language-agnotic Locale.ROOT

This commit is contained in:
Michael Osipov 2019-12-15 10:58:41 +01:00
parent 8adc6c3277
commit 846a25561c
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ class BasicIdGenerator {
final int rndnum = this.rnd.nextInt(); final int rndnum = this.rnd.nextInt();
buffer.append(System.currentTimeMillis()); buffer.append(System.currentTimeMillis());
buffer.append('.'); buffer.append('.');
final Formatter formatter = new Formatter(buffer, Locale.US); final Formatter formatter = new Formatter(buffer, Locale.ROOT);
formatter.format("%1$016x-%2$08x", Long.valueOf(this.count), Integer.valueOf(rndnum)); formatter.format("%1$016x-%2$08x", Long.valueOf(this.count), Integer.valueOf(rndnum));
formatter.close(); formatter.close();
buffer.append('.'); buffer.append('.');