From 548ed213888e44769aca92032282e42027d4de36 Mon Sep 17 00:00:00 2001 From: Carlos Amengual Date: Fri, 11 Oct 2024 15:11:10 +0200 Subject: [PATCH] css: set an adequate default size for the string maps --- .../carte/echosvg/css/engine/value/AbstractColorManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/AbstractColorManager.java b/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/AbstractColorManager.java index d7e23c884..e4b206278 100644 --- a/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/AbstractColorManager.java +++ b/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/AbstractColorManager.java @@ -58,7 +58,7 @@ public abstract class AbstractColorManager extends IdentifierManager { /** * The identifier values. */ - protected static final StringMap values = new StringMap(); + protected static final StringMap values = new StringMap(50); static { values.put(CSSConstants.CSS_AQUA_VALUE, ValueConstants.AQUA_VALUE); values.put(CSSConstants.CSS_BLACK_VALUE, ValueConstants.BLACK_VALUE); @@ -111,7 +111,7 @@ public abstract class AbstractColorManager extends IdentifierManager { /** * The computed identifier values. */ - protected static final StringMap computedValues = new StringMap(); + protected static final StringMap computedValues = new StringMap(18); static { computedValues.put(CSSConstants.CSS_BLACK_VALUE, ValueConstants.BLACK_RGB_VALUE); computedValues.put(CSSConstants.CSS_SILVER_VALUE, ValueConstants.SILVER_RGB_VALUE);