Skip to content

Commit

Permalink
css: set an adequate default size for the string maps
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosame committed Oct 11, 2024
1 parent 6019c32 commit 548ed21
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 548ed21

Please sign in to comment.