From 846a25561c70148ae89a1ea4ae49bb7e9473d68f Mon Sep 17 00:00:00 2001 From: Michael Osipov Date: Sun, 15 Dec 2019 10:58:41 +0100 Subject: [PATCH] Use language-agnotic Locale.ROOT --- .../org/apache/hc/client5/http/impl/cache/BasicIdGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/BasicIdGenerator.java b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/BasicIdGenerator.java index cfa28aca7..80fdb6b88 100644 --- a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/BasicIdGenerator.java +++ b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/BasicIdGenerator.java @@ -65,7 +65,7 @@ class BasicIdGenerator { final int rndnum = this.rnd.nextInt(); buffer.append(System.currentTimeMillis()); 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.close(); buffer.append('.');