Browse Source

Adjusted HashMap initial size.


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197089 13f79535-47bb-0310-9956-ffa450edef68
tags/Alt-Design_pre_awt_renderer_import
Peter Bernard West 20 years ago
parent
commit
0a282932be
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/java/org/apache/fop/fo/PropNames.java

+ 2
- 1
src/java/org/apache/fop/fo/PropNames.java View File

@@ -790,7 +790,8 @@ public class PropNames {
*/
private static final HashMap toIndex;
static {
toIndex = new HashMap(LAST_PROPERTY_INDEX + 1);
toIndex = new HashMap(
(int)((LAST_PROPERTY_INDEX + 1) / 0.75) + 1);
// Set up the toIndex Hashmap with the name of the
// property as a key, and the integer index as a value
for (int i = 0; i <= LAST_PROPERTY_INDEX; i++) {

Loading…
Cancel
Save