From ae4d0b65a21244280267c2334357c0631ba228b9 Mon Sep 17 00:00:00 2001 From: Arnaud Roques Date: Tue, 19 Oct 2021 20:21:37 +0200 Subject: [PATCH] Fix toString() method for non-US JVM --- src/net/sourceforge/plantuml/graphic/color/ColorHSB.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/net/sourceforge/plantuml/graphic/color/ColorHSB.java b/src/net/sourceforge/plantuml/graphic/color/ColorHSB.java index 24a6c9a1d..cafefa1fa 100644 --- a/src/net/sourceforge/plantuml/graphic/color/ColorHSB.java +++ b/src/net/sourceforge/plantuml/graphic/color/ColorHSB.java @@ -1,14 +1,15 @@ package net.sourceforge.plantuml.graphic.color; import java.awt.Color; +import java.util.Locale; /** * {@link Color} with hue, saturation and brightness. */ public class ColorHSB extends Color { - final float hue; - final float saturation; - final float brightness; + private final float hue; + private final float saturation; + private final float brightness; public ColorHSB(int rgba) { super(rgba, true); @@ -36,7 +37,7 @@ public class ColorHSB extends Color { @Override public String toString() { - return String.format("%s[a=%02X r=%02X g=%02X b=%02X / h=%f s=%f b=%f]", + return String.format(Locale.US, "%s[a=%02X r=%02X g=%02X b=%02X / h=%f s=%f b=%f]", getClass().getSimpleName(), getAlpha(), getRed(), getGreen(), getBlue(), getHue(), getSaturation(), getBrightness() ); }